diff --git a/extension/src/popup/components/form-header.ts b/extension/src/popup/components/form-header.ts index 61e6f67..e3f92c2 100644 --- a/extension/src/popup/components/form-header.ts +++ b/extension/src/popup/components/form-header.ts @@ -1,17 +1,21 @@ /// Shared header chrome for typed form views (login, secure-note, identity, card, /// key, totp, document). Renders the title row plus a fullscreen-only "esc to /// cancel" subtitle. Use the existing `${...}` template-literal interpolation -/// at call sites: `${renderFormHeader('new login')}`. +/// at call sites: `${renderFormHeader({ titleText: 'new login' })}`. /// /// item-form.ts (the type-selection screen) uses a different header structure /// and does NOT consume this helper. import { isInTab } from '../../shared/state'; -export function renderFormHeader(titleText: string): string { +export interface FormHeaderOpts { + titleText: string; +} + +export function renderFormHeader(opts: FormHeaderOpts): string { return `