this repo has no description
1export interface HeaderProps {
2 title: string,
3 note: string,
4}
5
6export default function Header({ title, note }: HeaderProps) {
7 if (title === undefined) {
8 return <></>;
9 }
10 return (
11 <header>
12 <h1>{ title }</h1>
13 {
14 note !== undefined
15 ? (
16
17 <div class="note">{note}</div>
18 )
19 : (
20 <></>
21 )
22 }
23 </header>
24 );
25}