import type { Options } from 'docx-preview';
import { SHARED_DOCX_OFFICIAL_FORM_RENDER_OPTIONS } from '@/lib/sharedDocxOfficialFormRenderOptions';

/**
 * docx-preview's `className` (default in library is `"docx"`) is the prefix for generated classes,
 * notably `{className}-wrapper` for the inWrapper layout. Styling in `applicationFormDocxPreview.css`
 * targets that wrapper under `[data-app-form-docx-preview]`.
 */

/**
 * Shared options for `renderDocxAsync` in the application form Word preview only.
 * Exported for tests or storybook; production use is from {@link ApplicationFormDocxPreview}.
 */
export const docxApplicationFormPreviewRenderOptions: Partial<Options> =
  SHARED_DOCX_OFFICIAL_FORM_RENDER_OPTIONS;

export const applicationFormDocxPreviewMountAttr = { 'data-app-form-docx-preview': true } as const;
