/// Shared list of typed-form (`renderForm`) entries for it.each parameterization
/// across regression tests. Add a new typed form here ONCE — popup + fullscreen
/// suites pick it up automatically.

import * as login from '../login';
import * as secureNote from '../secure-note';
import * as identity from '../identity';
import * as card from '../card';
import * as key from '../key';
import * as totp from '../totp';
import * as documentType from '../document';

type RenderFn = (app: HTMLElement, mode: 'add' | 'edit', existing: null) => void;

export const TYPED_FORMS: Array<[string, RenderFn]> = [
  ['login', login.renderForm],
  ['secure-note', secureNote.renderForm],
  ['identity', identity.renderForm],
  ['card', card.renderForm],
  ['key', key.renderForm],
  ['totp', totp.renderForm],
  ['document', documentType.renderForm],
];
