import { InboundsHostsFilters } from './filters'
import { InboundsSidebar } from './inbounds-sidebar'
import { HostsTable } from './table'
import { queryIds } from 'constants/query-ids';
import { useQuery } from '@tanstack/react-query';
import { fetchInbounds, fetchInboundHosts, useInbounds } from 'stores';
import { Grid, GridItem, } from '@chakra-ui/react';
import { useTranslation } from 'react-i18next';
import { Callout } from 'components/callout';
export const InboundsHostsManager = () => {
const { selectedInbound } = useInbounds();
const { data: inbounds } = useQuery({
queryKey: [queryIds.inbounds],
initialData: [],
queryFn: () => {
return fetchInbounds();
}
});
const { data: hosts } = useQuery({
queryKey: [queryIds.hosts, selectedInbound?.id],
initialData: [],
queryFn: () => {
return fetchInboundHosts(selectedInbound?.id);
}
});
const { t } = useTranslation('noInboundsCallout');
return inbounds.length === 0 ?
: (
<>
>
)
}