import { useCurrentStateAndParams } from '@uirouter/react'; import { useUnauthorizedRedirect } from '@/react/hooks/useUnauthorizedRedirect'; import { PageHeader } from '@@/PageHeader'; import { NamespaceDetailsWidget } from './NamespaceDetailsWidget'; import { AccessDatatable } from './AccessDatatable/AccessDatatable'; import { CreateAccessWidget } from './CreateAccessWidget/CreateAccessWidget'; export function AccessView() { const { params: { id: namespaceName }, } = useCurrentStateAndParams(); useUnauthorizedRedirect( { authorizations: ['K8sResourcePoolDetailsW'] }, { to: 'kubernetes.resourcePools' } ); return ( <> ); }