import { Button } from "@/components/ui/button"; import { Card, CardContent, CardFooter, CardHeader, CardTitle, } from "@/components/ui/card"; import { AlertTriangle, Clock, Copy, Database, Pause, Play, RefreshCw, } from "lucide-react"; import Link from "next/link"; import { StatusBadge } from "./badge"; interface PipelineCardProps { name: string; description: string; status: "active" | "paused" | "error"; lastRun: string; nextRun: string; sources: number; records: number; error?: string; aiPowered?: boolean; } export function PipelineCard({ name, description, status, lastRun, nextRun, sources, records, error, }: PipelineCardProps) { return (
{name}
{/* {description} */}
Last run: {lastRun}
Next run: {nextRun}
Sources: {sources} Records: {records}
{error && (
{error}
)}
{status === "active" ? ( ) : ( )}
); }