mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-14 11:53:49 +00:00
19 lines
427 B
TypeScript
19 lines
427 B
TypeScript
import useProjectData from '../../../common/hooks-query/useProjectData';
|
|
|
|
import style from './TitleOverview.module.scss';
|
|
|
|
export default function TitleOverview() {
|
|
const { data } = useProjectData();
|
|
|
|
if (!data.title && !data.description) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<div>
|
|
<div className={style.title}>{data.title}</div>
|
|
<div className={style.description}>{data.description}</div>
|
|
</div>
|
|
);
|
|
}
|