import { useModalFocus } from "@/shared/ui/use-modal-focus"; export type ConfirmDeactivateDialogProps = { readonly confirmLabel?: string; readonly errorMessage?: string; readonly impactDescription: string; readonly isPending?: boolean; readonly onCancel: () => void; readonly onConfirm: () => void; readonly open: boolean; readonly targetName: string; }; export function ConfirmDeactivateDialog({ confirmLabel = "비활성화", errorMessage, impactDescription, isPending = false, onCancel, onConfirm, open, targetName }: ConfirmDeactivateDialogProps) { const { dialogRef, trapFocus } = useModalFocus(open); if (!open) { return null; } const title = `${targetName} 비활성화 확인`; return (

{title}

{impactDescription}

{errorMessage === undefined ? null :

{errorMessage}

}
); }