import Scribble from '@/components/Scribble'; import { formatTechnicalValue } from '@/lib/utils/technical'; interface TechnicalGridItem { label: string; value: string; } interface TechnicalGridProps { title?: string; items: TechnicalGridItem[]; } export default function TechnicalGrid({ title, items }: TechnicalGridProps) { return (
{title && (

{title}

)}
{items.map((item, index) => { const formatted = formatTechnicalValue(item.value); return (
{item.label}
{formatted.isList ? (
{formatted.parts.map((p, pIdx) => ( {p} ))}
) : ( item.value )}
); })}
); }