"use client"; import Link from "next/link"; import { AppShell } from "@/components/AppShell"; import { CustomerForm } from "@/components/CustomerForm"; import { useCan } from "@/lib/abilities"; export default function NuevoClientePage() { return ( ); } function NuevoCliente() { const allowed = useCan("customer:create"); return ( <>
← Clientes

Nuevo cliente

{allowed ? ( ) : (
No tiene permisos para crear clientes.
)} ); }