"use client"; import { useMarriageProfileQuery } from "@/hooks/marriage/use-profile-main"; /** * Returns the current authenticated user's profile ID. * Returns null when profile hasn't loaded yet or user is unauthenticated. */ export function useCurrentProfileId(): number | null { const { data: profile } = useMarriageProfileQuery(); return profile?.id ?? null; }