Files
gridpilot.gg/apps/website/components/admin/AdminDataTable.tsx
2026-01-18 16:18:18 +01:00

33 lines
675 B
TypeScript

'use client';
import React from 'react';
import { Card } from '@/ui/Card';
import { Stack } from '@/ui/Stack';
interface AdminDataTableProps {
children: React.ReactNode;
maxHeight?: string | number;
}
/**
* AdminDataTable
*
* Semantic wrapper for high-density admin tables.
* Provides a consistent container with "Precision Racing Minimal" styling.
*/
export function AdminDataTable({
children,
maxHeight
}: AdminDataTableProps) {
return (
<Card p={0} overflow="hidden">
<Stack
overflow="auto"
maxHeight={typeof maxHeight === 'number' ? `${maxHeight}px` : maxHeight}
>
{children}
</Stack>
</Card>
);
}