mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-09 01:13:55 +00:00
af1241bec7
* feat: enable configuration of <Info> panel * feat: add description field to event data
18 lines
506 B
TypeScript
18 lines
506 B
TypeScript
import useEventData from '../../../common/hooks-query/useEventData';
|
|
|
|
import style from '../Info.module.scss';
|
|
|
|
export default function InfoHeader({ selected }: { selected: string }) {
|
|
const { data } = useEventData();
|
|
|
|
return (
|
|
<>
|
|
<div className={style.panelHeader}>
|
|
<span className={style.title}>{data?.title || ''}</span>
|
|
<span className={style.selected}>{selected}</span>
|
|
</div>
|
|
<div className={style.description}>{data?.description || ''}</div>
|
|
</>
|
|
);
|
|
}
|