'use client';
import type {ReactNode} from 'react';
import type {LucideIcon} from 'lucide-react';
import {Card, CardContent, CardDescription, CardHeader, CardTitle} from '@/components/ui/card';
import {cn} from '@/lib/utils';
export function NodeInfoRow({
label,
children,
className,
}: {
label: string;
children: ReactNode;
className?: string;
}) {
return (
);
}
export function NodeKpiCard({
label,
value,
icon: Icon,
}: {
label: string;
value: ReactNode;
icon?: LucideIcon;
}) {
return (
{Icon ? : null}
{label}
{value}
);
}
export function NodeSectionCard({
title,
description,
action,
children,
className,
}: {
title: string;
description?: string;
action?: React.ReactNode;
children: ReactNode;
className?: string;
}) {
return (
{title}
{description ? {description} : null}
{action}
{children}
);
}
export function NodeErrorBanner({ message }: { message: string }) {
return (
{message}
);
}