import { html } from "lit"; export interface LanguageSelectorProps { pattern: "simple" | "dropdown"; buttonType: string; icon: boolean; instanceId?: string; } export const LanguageSelector = ({ pattern, buttonType, icon, instanceId = crypto.randomUUID(), }: LanguageSelectorProps) => { const buttonTypeClass = buttonType === "secondary" ? "usa-button--outline" : "usa-button--unstyled"; const languageOptionsId = `language-options-${instanceId}`; const unstyledCenteringClass = buttonType === "secondary" ? "" : "flex-justify-center mobile-lg:flex-justify-end"; if (pattern === "simple") { return html`
`; } // Dropdown menu pattern (uses USWDS JavaScript) return html`