"use client"; import React from "react"; import { Card, CardContent, CardHeader, } from "@/components/ui/card"; import { Skeleton } from "@/components/ui/skeleton"; import { CardSkeletonProps } from "./schema"; // Interface moved to schema.ts export function CardSkeleton({ index, showFields, showViewIcon, showUpdateIcon, }: CardSkeletonProps) { return (
{showViewIcon && ( )} {showUpdateIcon && ( )}
{showFields.map((field, fieldIndex) => (
))}
); }