import type { ReactNode } from "react";
import { Loader2 } from "lucide-react";
import { cn } from "../lib/utils";
export interface PreviewCardProps {
icon: ReactNode;
title: string;
description?: string;
meta?: ReactNode;
children?: ReactNode;
className?: string;
}
export function PreviewCard({
icon,
title,
description,
meta,
children,
className,
}: PreviewCardProps) {
return (
{icon}
{title}
{description ? (
{description}
) : null}
{meta ? (
{meta}
) : null}
{children ?
{children}
: null}
);
}
export function PreviewEmpty({
label,
className,
}: {
label: string;
className?: string;
}) {
return (
{label}
);
}
export function PreviewError({ error }: { error: string }) {
return (
{error}
);
}
export function PreviewLoading({ label = "Running…" }: { label?: string }) {
return (
{label}
);
}