Files
blitzkit/packages/website/src/components/Tankopedia/CharacteristicsSection/index.tsx
T

76 lines
2.3 KiB
TypeScript
Raw Normal View History

2025-04-17 13:00:53 -05:00
import { Flex } from '@radix-ui/themes';
2025-08-10 14:03:13 -05:00
import type { MaybeSkeletonComponentProps } from '../../../types/maybeSkeletonComponentProps';
2024-09-22 22:04:03 -05:00
import { Characteristics } from './components/Characteristics';
2025-04-17 13:00:53 -05:00
import { CompareOptions } from './components/Characteristics/components/CompareOptions';
2025-04-24 22:04:33 -05:00
import { StatSearch } from './components/Characteristics/components/StatSearch';
2024-09-22 22:04:03 -05:00
import { Consumables } from './components/Consumables';
import { Equipment } from './components/Equipment';
import { Miscellaneous } from './components/Miscellaneous';
import { Modules } from './components/Modules';
import { Provisions } from './components/Provisions';
import { Skills } from './components/Skills';
2024-05-03 17:07:27 -05:00
2025-08-10 14:03:13 -05:00
export function CharacteristicsSection({
skeleton,
}: MaybeSkeletonComponentProps) {
2024-05-03 17:07:27 -05:00
return (
2025-04-17 13:00:53 -05:00
<Flex direction="column" gap="3">
2025-04-24 22:04:33 -05:00
<Flex
display={{ initial: 'none', sm: 'flex' }}
direction={{ initial: 'column', md: 'row' }}
align="center"
justify="center"
mb="8"
gap={{ initial: '4', md: '8' }}
>
<CompareOptions />
<StatSearch />
</Flex>
2025-04-17 13:00:53 -05:00
<Flex mt="4" px="4" style={{ boxSizing: 'border-box' }} gap="6">
2024-05-03 19:10:51 -05:00
<Flex
2024-06-13 13:26:12 -05:00
flexGrow="1"
2025-04-17 13:00:53 -05:00
gap="9"
justify="center"
align={{ initial: 'center', sm: 'start' }}
direction={{ initial: 'column', sm: 'row' }}
2024-05-03 19:10:51 -05:00
>
2025-04-17 13:00:53 -05:00
<Flex
direction="column"
gap="6"
2025-04-24 20:24:12 -05:00
maxWidth="19rem"
2025-04-17 13:00:53 -05:00
align={{ initial: 'center', sm: 'start' }}
>
<Modules />
<Equipment />
<Provisions />
<Consumables />
<Skills />
<Miscellaneous />
</Flex>
2025-04-24 20:54:24 -05:00
<Flex
direction="column"
gap="6"
align={{ initial: 'stretch', sm: 'center' }}
width={{ initial: '100%', sm: 'auto' }}
>
2025-04-24 22:04:33 -05:00
<Flex
display={{ initial: 'flex', sm: 'none' }}
direction="column"
align="center"
justify="center"
mb="8"
gap="8"
>
<StatSearch />
<CompareOptions />
</Flex>
2025-08-10 14:03:13 -05:00
<Characteristics skeleton={skeleton} />
2025-04-17 13:00:53 -05:00
</Flex>
2024-05-03 17:22:36 -05:00
</Flex>
2024-05-03 17:07:27 -05:00
</Flex>
2024-05-04 16:19:27 -05:00
</Flex>
2024-05-03 17:07:27 -05:00
);
}