this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 9fb21806a03db196ef35e76ddab8b11274582d32 25 lines 498 B view raw
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}