2024-07-02 20:07:16 -05:00
|
|
|
import { Flex } from '@radix-ui/themes';
|
2024-10-18 10:24:39 -05:00
|
|
|
import type { MaybeSkeletonComponentProps } from '../../types/maybeSkeletonComponentProps';
|
2024-10-07 17:31:13 -05:00
|
|
|
import { StickyTableRoot } from '../StickyTableRoot';
|
2024-07-02 20:07:16 -05:00
|
|
|
import { Header } from './Header';
|
|
|
|
|
import { Tanks } from './Tanks';
|
|
|
|
|
|
2024-10-18 10:24:39 -05:00
|
|
|
export function TankTable({ skeleton }: MaybeSkeletonComponentProps) {
|
2024-07-02 20:07:16 -05:00
|
|
|
return (
|
|
|
|
|
<Flex justify="center">
|
2024-07-02 20:12:15 -05:00
|
|
|
<StickyTableRoot
|
|
|
|
|
size={{ initial: '1', sm: '2' }}
|
|
|
|
|
variant="surface"
|
2024-10-18 10:24:39 -05:00
|
|
|
style={{ maxWidth: '100%' }}
|
2024-07-02 20:12:15 -05:00
|
|
|
>
|
2024-07-02 20:07:16 -05:00
|
|
|
<Header />
|
2024-10-18 10:24:39 -05:00
|
|
|
<Tanks skeleton={skeleton} />
|
2024-07-02 20:07:16 -05:00
|
|
|
</StickyTableRoot>
|
|
|
|
|
</Flex>
|
|
|
|
|
);
|
|
|
|
|
}
|