import { useNavigate } from 'react-router-dom'; import { useTheme } from '@emotion/react'; import styled from '@emotion/styled'; import { Button } from '@/ui/button/components/Button'; import { IconBuildingSkyscraper, IconChevronRight, IconDotsVertical, IconLuggage, IconPlane, IconPlus, IconSettings, IconUser, } from '@/ui/icon'; import { SubMenuTopBarContainer } from '@/ui/layout/components/SubMenuTopBarContainer'; import { Table } from '@/ui/table/components/Table'; import { TableCell } from '@/ui/table/components/TableCell'; import { TableHeader } from '@/ui/table/components/TableHeader'; import { TableRow } from '@/ui/table/components/TableRow'; import { TableSection } from '@/ui/table/components/TableSection'; import { Tag } from '@/ui/tag/components/Tag'; import { H1Title } from '@/ui/typography/components/H1Title'; import { H2Title } from '@/ui/typography/components/H2Title'; import { objectSettingsWidth } from './constants/objectSettings'; const StyledContainer = styled.div` padding: ${({ theme }) => theme.spacing(8)}; width: ${objectSettingsWidth}; `; const StyledTableRow = styled(TableRow)` grid-template-columns: 180px 98.7px 98.7px 98.7px 36px; `; const StyledNameTableCell = styled(TableCell)` color: ${({ theme }) => theme.font.color.primary}; gap: ${({ theme }) => theme.spacing(2)}; `; const StyledTag = styled(Tag)` box-sizing: border-box; height: ${({ theme }) => theme.spacing(4)}; `; const StyledIconTableCell = styled(TableCell)` justify-content: center; padding-right: ${({ theme }) => theme.spacing(1)}; `; const StyledIconChevronRight = styled(IconChevronRight)` color: ${({ theme }) => theme.font.color.tertiary}; `; const StyledIconDotsVertical = styled(IconDotsVertical)` color: ${({ theme }) => theme.font.color.tertiary}; `; const StyledHeader = styled.div` align-items: center; display: flex; justify-content: space-between; margin-bottom: ${({ theme }) => theme.spacing(8)}; `; const StyledH1Title = styled(H1Title)` margin-bottom: 0; `; const activeObjectItems = [ { name: 'Companies', Icon: IconBuildingSkyscraper, type: 'standard', fields: 23, instances: 165, }, { name: 'People', Icon: IconUser, type: 'standard', fields: 16, instances: 462, }, ]; const disabledObjectItems = [ { name: 'Travels', Icon: IconLuggage, type: 'custom', fields: 23, instances: 165, }, { name: 'Flights', Icon: IconPlane, type: 'custom', fields: 23, instances: 165, }, ]; export const SettingsObjects = () => { const theme = useTheme(); const navigate = useNavigate(); return (