Krys4lide/frontend/composables/currentUser.ts

4 lines
129 B
TypeScript
Raw Normal View History

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