import { Button } from './Button'; import './header.css'; type User = { name: string; }; export interface HeaderProps { user?: User; onLogin?: () => void; onLogout?: () => void; onCreateAccount?: () => void; } export const Header = ({ user, onLogin, onLogout, onCreateAccount }: HeaderProps) => (

Acme

{user ? ( <> Welcome, {user.name}!
);