import { FormActions, FormBody, FormDialog } from "@repo/rdx-ui/components/form-dialog"; import { Button } from "@repo/shadcn-ui/components/button"; import { useTranslation } from "react-i18next"; import { InventoryFeedback } from "../../../shared"; import { useEndRelationshipDialogController } from "../controllers"; import type { EndRelationshipDialogProps } from "../types"; export function EndRelationshipDialog(props: EndRelationshipDialogProps) { const { relationship, sourceName, targetName, onClose } = props; const { mutation } = useEndRelationshipDialogController(props); const { t } = useTranslation("assets"); return ( { if (!open) { onClose(); } }} open title={t("endRelationship")} >

{relationship.values.name} · {sourceName} → {targetName}

{t("endRelationshipConfirm")}

); }