import { html } from "lit"; import enContent from "./translations/en.json"; import esContent from "./translations/es.json"; import commonData from "../../../data/common.json"; export interface IdentifierProps { language: "English" | "Spanish"; logos: "None" | "Single" | "Multiple"; showTaxpayerDisclaimer: boolean; } export const Identifier = ({ language, logos, showTaxpayerDisclaimer }: IdentifierProps) => { // Set language const content = language === "Spanish" ? esContent : enContent; // Masthead logos section - conditional based on logos prop let logosSection = null; if (logos === "Single") { logosSection = html`
`; } else if (logos === "Multiple") { logosSection = html` `; } // Taxpayer disclaimer - conditional const taxpayerDisclaimer = showTaxpayerDisclaimer ? html` ${content.masthead.taxpayerDisclaimer}` : null; return html`${content.masthead.text} ${content.masthead.parentName}.${ taxpayerDisclaimer ? html` ${taxpayerDisclaimer}` : null }