import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from "@/components/ui/card"; import { api } from "@/utils/api"; import { ShieldCheck } from "lucide-react"; import { AddCertificate } from "./add-certificate"; import { DeleteCertificate } from "./delete-certificate"; export const ShowCertificates = () => { const { data } = api.certificates.all.useQuery(); return (
Certificates Add custom certificates to your application. {data?.length === 0 ? (
To create a certificate is required to upload your certificate
) : (
{data?.map((destination, index) => (
{index + 1}. {destination.name}
))}
)}
); };