mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-19 06:04:05 +00:00
832c060940
* config(sentry): instrumentation only in production * chore: upgrade deps * refactor: simplify and convert to ts * refactor: composition and styles * chore: remove deprecated deps * ux: close menu on click outside * style: small tweaks and clarifications * refactor: retire PiP view * ux: small tweaks * style: cleanup deprecated styles * chore: remove unused * refactor: remove usages of deprecated fields and improve null timer presentation * refactor: improve composition of countdown * style: cleanup overridable styles * ux: show event overtime status * style: correct logic in paused timers
25 lines
616 B
TypeScript
25 lines
616 B
TypeScript
import './TitleCard.scss';
|
|
|
|
interface TitleCardProps {
|
|
label: 'now' | 'next';
|
|
title: string;
|
|
subtitle: string;
|
|
presenter: string;
|
|
}
|
|
|
|
export default function TitleCard(props: TitleCardProps) {
|
|
const { label, title, subtitle, presenter } = props;
|
|
const accent = label === 'now';
|
|
|
|
return (
|
|
<div className='title-card'>
|
|
<div className='inline'>
|
|
<span className='presenter'>{presenter}</span>
|
|
<span className={accent? 'label accent': 'label'}>{label}</span>
|
|
</div>
|
|
<div className='title'>{title}</div>
|
|
<div className='subtitle'>{subtitle}</div>
|
|
</div>
|
|
);
|
|
}
|