Krys4lide/frontend/composables/currentUser.ts

4 lines
129 B
TypeScript

import type { User } from '@/types/user';
export const useCurrentUser = () => useState<User | null>('currentUser', () => null);