Remove old component

This commit is contained in:
Oliver Walters 2026-06-30 13:33:26 +00:00
parent 85e2907f60
commit 9cab4c27f8
1 changed files with 0 additions and 41 deletions

View File

@ -1,41 +0,0 @@
import { StylishText } from '@lib/components/StylishText';
import { Divider, Table } from '@mantine/core';
import type { ReactNode } from 'react';
export interface AttributeRow {
label: string;
value: ReactNode | null | undefined;
}
export function AttributeGrid({
title,
items
}: Readonly<{
title: string;
items: AttributeRow[];
}>) {
const valid = items.filter(
(item) => item.value !== null && item.value !== undefined
);
if (valid.length === 0) return null;
return (
<>
<Divider />
<StylishText size='md'>{title}</StylishText>
<Table striped withRowBorders={false} fz='sm'>
<Table.Tbody>
{valid.map((item) => (
<Table.Tr key={item.label}>
<Table.Td w='30%' fw='bold'>
{item.label}
</Table.Td>
<Table.Td w='70%'>{item.value}</Table.Td>
</Table.Tr>
))}
</Table.Tbody>
</Table>
</>
);
}