import { h, type FunctionComponent } from 'preact' import cn from 'classnames' import { useCurrentUser } from '../contexts/current_user.ts' import s from './current_user.module.scss' const CurrentUser: FunctionComponent<{ className?: string }> = ({ className }) => { const { user } = useCurrentUser() return user ? (