import { html } from "lit"; export interface ModalProps { size: "small" | "large"; forceAction: boolean; modalId: string; } export const Modal = ({ size, forceAction, modalId }: ModalProps) => { // Use provided ID or generate unique ID to avoid conflicts in Storybook const id = modalId || `modal-${crypto.randomUUID()}`; const modalClasses = ["usa-modal", size === "large" && "usa-modal--lg"].filter(Boolean).join(" "); // Choose content based on forceAction const heading = forceAction ? "Your session will end soon." : "Are you sure you want to continue?"; const description = forceAction ? "You've been inactive for too long. Please choose to stay signed in or sign out. Otherwise, you'll be signed out automatically in 5 minutes." : "You have unsaved changes that will be lost."; const primaryButtonText = forceAction ? "Yes, stay signed in" : "Continue without saving"; const secondaryButtonText = forceAction ? "Sign out" : "Go back"; return html`

${heading}

${description}

${ !forceAction ? html` ` : null }
`; };