import { useTranslation } from '../../../translation/TranslationProvider'; import './TitleCard.scss'; interface TitleCardProps { label: 'now' | 'next'; title: string | null; subtitle: string | null; presenter: string | null; } export default function TitleCard(props: TitleCardProps) { const { label, title, subtitle, presenter } = props; const { getLocalizedString } = useTranslation(); const accent = label === 'now'; return (
{presenter} {getLocalizedString(`common.${label}`)}
{title}
{subtitle}
); }