import { ReactNode } from 'react' import { Badge, cn } from 'ui' import { LastSignInType, useLastSignIn } from '@/hooks/misc/useLastSignIn' export function LastSignInWrapper({ children, type, }: { children: ReactNode type: LastSignInType }) { const [lastSignIn] = useLastSignIn() return (
{lastSignIn === type && ( Last used )}
{children}
) }