import Link from "next/link";
import { ArrowLeft } from "@/components/ui/icons";
import { Topbar } from "@/components/shell/topbar";
import { Button } from "@/components/ui/button";
import { NewClientForm } from "./new-client-form";

export const metadata = {
  title: "Nouveau client",
};

export default function NewClientPage() {
  return (
    <>
      <Topbar
        title="Provisionner un client"
        subtitle="Cree le compte, le site et l'acces portail en une etape"
        trailing={
          <Link href="/atelier-novelia/clients">
            <Button variant="ghost" size="sm">
              <ArrowLeft className="size-3.5" />
              Retour
            </Button>
          </Link>
        }
      />

      <div className="pt-6 max-w-3xl">
        <NewClientForm />
      </div>
    </>
  );
}
