import { FormDialog } from "@repo/rdx-ui/components/form-dialog"; import type { ComponentProps } from "react"; import { useTranslation } from "react-i18next"; import { TicketDetail } from "./ticket-detail"; export function TicketDetailDialog({ currentView, data, onClose, }: { currentView: ComponentProps["ticket"] | undefined; data: ComponentProps["data"] | undefined; onClose: () => void; }) { const { t } = useTranslation("companies"); return ( { if (!value) { onClose(); } }} open={Boolean(currentView)} title={t("tickets.details")} wide > {currentView && data && } ); }