import type { CampaignPageChrome } from '@/lib/campaignPageChrome' import { cn } from '@/lib/utils' export const CampaignPageChromeText = ({ chrome, layout, className, }: { chrome: CampaignPageChrome layout: 'mobile' | 'desktop' className?: string }) => { if (layout === 'desktop') { return (

{chrome.title} {chrome.subtitle ? ( {chrome.subtitle} ) : null}

) } return (
{chrome.onTitleClick ? ( ) : ( {chrome.title} )} {chrome.subtitle ? ( {chrome.subtitle} ) : null}
) }