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