// types/preferences.ts
// Add/merge these into your existing types/masterData.ts

export type PageSize = "A4" | "A5" | "A6" | "Letter" | "B4" | "B5";

export interface UserPreferences {
    id?: string;
    userId?: string;
    page_size: string;
    page_height_mm?: number;
    page_width_mm?: number;
    page_header_size_mm: number;
    page_footer_size_mm: number;
    page_left_side_spacing: number;
    page_right_side_spacing: number;
    font_size: number;
    prescription_language: string;
    is_signature_required: boolean;
    is_doctor_info_required: boolean;
    printed_letterhead: boolean;
    createdAt?: string;
    updatedAt?: string;
}

export const PAGE_SIZE_OPTIONS: { label: PageSize; dims: string }[] = [
    { label: "A4",     dims: "210.0 × 297.0 mm" },
    { label: "A5",     dims: "148.0 × 210.0 mm" },
    { label: "A6",     dims: "105.0 × 148.0 mm" },
    { label: "Letter", dims: "215.9 × 279.4 mm" },
    { label: "B4",     dims: "250.0 × 353.0 mm" },
    { label: "B5",     dims: "176.0 × 250.0 mm" },
];

export const LANGUAGE_OPTIONS = ["English", "Hindi", "Gujarati"] as const;

export const TEMPLATE_OPTIONS = [
    { id: "regular", name: "Regular", description: "Clean Layout",      pro: false },
    { id: "classic", name: "Classic", description: "Structured Format", pro: true  },
] as const;