metis-desk/modules/companies/src/web/printer-configurations/create/ui/printer-profile-create-dialog.tsx
2026-10-10 12:42:56 +02:00

31 lines
754 B
TypeScript

import { FormDialog } from "@repo/rdx-ui/components/form-dialog";
import { useTranslation } from "react-i18next";
import type { CompanyDTO } from "../../../../common";
import { WorkProfileForm } from "../../../work-profiles/shared";
export function PrinterProfileCreateDialog({
company,
onSaved,
onOpenChange,
}: {
company: CompanyDTO;
onSaved: (id: string) => void;
onOpenChange: (open: boolean) => void;
}) {
const { t } = useTranslation("companies");
return (
<FormDialog
cancelLabel={t("cancel")}
formActions
onOpenChange={onOpenChange}
open
title={t("profiles.new")}
wide
>
<WorkProfileForm allowQuickCreate={false} company={company} onSaved={onSaved} />
</FormDialog>
);
}