You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
374 B
12 lines
374 B
"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;
|
|
}
|