import React from 'react'; import Clock from '../Clock'; import { Config } from '../../types'; interface HeaderProps { config: Config; } const getClockSizeClass = (size: string) => { switch (size) { case 'tiny': return 'text-3xl'; case 'small': return 'text-4xl'; case 'medium': return 'text-5xl'; case 'large': return 'text-6xl'; default: return 'text-5xl'; } }; const getTitleSizeClass = (size: string) => { switch (size) { case 'tiny': return 'text-4xl'; case 'small': return 'text-5xl'; case 'medium': return 'text-6xl'; case 'large': return 'text-7xl'; default: return 'text-6xl'; } }; const getSubtitleSizeClass = (size: string) => { switch (size) { case 'tiny': return 'text-lg'; case 'small': return 'text-xl'; case 'medium': return 'text-2xl'; case 'large': return 'text-3xl'; default: return 'text-2xl'; } }; const Header: React.FC = ({ config }) => { return ( <> {config.clock.enabled && (
)}
{(config.title || config.subtitle) && (

{config.title}

{config.subtitle}

)}
); }; export default Header;