import { Link, useNavigate } from "react-router"; export const handle = { breadcrumbs: () => [ { label: "Mandanten", href: "/companies" }, { label: "Neuer Mandant" }, ], }; import { CompanyForm } from "@/components/company/company-form"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import { ChevronLeft } from "lucide-react"; export default function NewCompanyPage() { const navigate = useNavigate(); async function handleSubmit(data: Record) { const res = await fetch("/api/companies", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(data), }); if (res.ok) { const company = await res.json(); navigate(`/companies/${company.id}`); } } return (
Zurück zu Mandanten

Neuer Mandant

Legen Sie einen neuen Mandanten an

Mandantendaten
); }