import { withLimitToBE } from '@/react/hooks/useLimitToBE'; import { InformationPanel } from '@@/InformationPanel'; import { TextTip } from '@@/Tip/TextTip'; import { PageHeader } from '@@/PageHeader'; import { Link } from '@@/Link'; import { Alert } from '@@/Alert'; import { Datatable } from './Datatable'; import { useLicenseOverused, useUntrustedCount } from './queries'; export default withLimitToBE(WaitingRoomView); function WaitingRoomView() { const untrustedCount = useUntrustedCount(); const licenseOverused = useLicenseOverused(untrustedCount); return ( <> Only environments generated from the AEEC script will appear here, manually added environments and edge devices will bypass the waiting room. {licenseOverused && (
Associating all nodes in waiting room will exceed the node limit of your current license. Go to{' '} Licenses page to view the current usage.
)} ); }