import { h, type FunctionComponent } from 'preact' import { Show } from '@preact/signals/utils' import { useComputed } from '@preact/signals' import cn from 'classnames' import { useAuth } from '../../shared/contexts/auth.tsx' import s from './current_user.module.scss' const CurrentUser: FunctionComponent<{ className?: string }> = ({ className }) => { const { user } = useAuth() const noUser = useComputed(() => !user.value) return (
) } export default CurrentUser