mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
35 lines
838 B
TypeScript
35 lines
838 B
TypeScript
import { Heading, Table } from '@radix-ui/themes';
|
|
import { Var, type VarName } from '../../core/radix/var';
|
|
|
|
const rows: {
|
|
name: string;
|
|
color: VarName;
|
|
}[] = [
|
|
{ name: 'S', color: 'tomato-9' },
|
|
{ name: 'A', color: 'orange-9' },
|
|
{ name: 'B', color: 'amber-9' },
|
|
{ name: 'C', color: 'green-9' },
|
|
{ name: 'D', color: 'blue-9' },
|
|
];
|
|
|
|
export function TierListTable() {
|
|
return (
|
|
<Table.Root variant="surface">
|
|
<Table.Body>
|
|
{rows.map((row) => (
|
|
<Table.Row key={row.name}>
|
|
<Table.RowHeaderCell
|
|
width="0"
|
|
style={{ backgroundColor: Var(row.color) }}
|
|
>
|
|
<Heading>{row.name}</Heading>
|
|
</Table.RowHeaderCell>
|
|
|
|
<Table.Cell></Table.Cell>
|
|
</Table.Row>
|
|
))}
|
|
</Table.Body>
|
|
</Table.Root>
|
|
);
|
|
}
|