Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

Header.tsx

11 lines324 Bytes

1import { formatTitle } from '../utils/formatTitle'
2import styles from './Header.module.css'
3​
4export function Header({ title }: { title: string }) {
5 return (
6 <header className={styles.header} data-testid="shared-header">
7 <h1>{formatTitle(title)}</h1>
8 <button type="button">Save</button>
9 </header>
10 )