|
|
@ -8,10 +8,11 @@ import NavigationButton from "@/components/ui/navigation-button"; |
|
|
import ReportActionsSheet from "@/components/ui/report-actions-sheet"; |
|
|
import ReportActionsSheet from "@/components/ui/report-actions-sheet"; |
|
|
import { authBridge } from "@/lib/auth-bridge"; |
|
|
import { authBridge } from "@/lib/auth-bridge"; |
|
|
import { useMarriageProfileQuery } from "@/hooks/marriage/use-profile-main"; |
|
|
import { useMarriageProfileQuery } from "@/hooks/marriage/use-profile-main"; |
|
|
|
|
|
import type { MarriageProfileResponse } from "@/hooks/marriage/types"; |
|
|
import { localizePath } from "@/i18n/config"; |
|
|
import { localizePath } from "@/i18n/config"; |
|
|
import { useI18n } from "@/i18n/provider"; |
|
|
import { useI18n } from "@/i18n/provider"; |
|
|
|
|
|
|
|
|
function getSubmitPath(profile: ReturnType<typeof useMarriageProfileQuery>["data"]) { |
|
|
|
|
|
|
|
|
function getSubmitPath(profile: MarriageProfileResponse | undefined) { |
|
|
const isInCase = profile?.status === "in_case"; |
|
|
const isInCase = profile?.status === "in_case"; |
|
|
const isFemaleAcceptedFlow = |
|
|
const isFemaleAcceptedFlow = |
|
|
isInCase && |
|
|
isInCase && |
|
|
|