import { Table, Thead, Tbody, Th, Td, Tr, HStack } from '@chakra-ui/react'; import classNames from 'classnames'; import { InboundCard } from 'components/inbounds-card'; import { handleSort } from 'components/table'; import { useTranslation } from 'react-i18next'; import { useQuery } from 'react-query'; import { fetchInbounds, useInbounds } from 'stores'; export const InboundsSidebar = () => { const { onInboundsFilterChange, inboundsFilters: filters, selectedInbound, selectInbound, } = useInbounds(); const { data: inbounds } = useQuery('hosts', () => { return fetchInbounds(); }); const { t } = useTranslation(); return ( {inbounds?.map((inbound, i) => { const active = inbounds[i] == selectedInbound return ( { selectInbound(inbound) }}> ); })}
{t('inbounds')}
) }