import { useQuery } from '@tanstack/react-query'; import type { MeResponse } from '@solelog/shared'; import { apiFetch } from '../lib/api'; // The signed-in user (id, email, name). Used by the Account screen. export function useMe() { return useQuery({ queryKey: ['me'], queryFn: () => apiFetch('/api/me'), }); }