diff --git a/react/src/components/AllocatedResourcesCard.tsx b/react/src/components/AllocatedResourcesCard.tsx new file mode 100644 index 000000000..b03eda494 --- /dev/null +++ b/react/src/components/AllocatedResourcesCard.tsx @@ -0,0 +1,127 @@ +import { useCurrentProjectValue } from '../hooks/useCurrentProject'; +import Flex from './Flex'; +import ResourceGroupSelect from './ResourceGroupSelect'; +import ResourceUnit, { ResourceUnitProps } from './ResourceUnit'; +import { SyncOutlined } from '@ant-design/icons'; +import { + Button, + Card, + CardProps, + ConfigProvider, + Divider, + Switch, + theme, + Typography, +} from 'antd'; +import _ from 'lodash'; +import React from 'react'; +import { useTranslation } from 'react-i18next'; + +interface AllocatedResourcesCardProps extends CardProps {} + +const AllocatedResourcesCard: React.FC = ({ + ...cardProps +}) => { + const { token } = theme.useToken(); + const { t } = useTranslation(); + const currentProject = useCurrentProjectValue(); + + const resourceUnitMockData: Array = [ + { + name: 'CPU', + displayUnit: 'Core', + value: 12, + percentage: (4 / 12) * 100, + }, + { + name: 'RAM', + displayUnit: 'GiB', + value: 256, + percentage: (8 / 12) * 100, + }, + { + name: 'FGPU', + displayUnit: 'GiB', + value: 3.5, + percentage: (4 / 12) * 100, + }, + { + name: 'ATOM', + displayUnit: 'Unit', + value: 2, + percentage: (2 / 12) * 100, + }, + ]; + return ( + + + + + + Allocated Resources + + + + + +