import { AlertIcon } from '@primer/octicons-react'; import cn from '~/utils/cn'; import Card from '~/components/Card'; import Code from '~/components/Code'; interface Props { mode: 'file' | 'database'; } export function Unavailable({ mode }: Props) { return (
ACL Policy Unavailable
Unable to load a valid ACL policy configuration. This is most likely due to a misconfiguration in your Headscale configuration file. {mode !== 'file' ? (

According to your configuration, the ACL policy mode is set to{' '} file but the ACL file is not available. Ensure that the{' '} policy.path is set to a valid path in your Headscale configuration.

) : (

In order to fully utilize the ACL management features of Headplane, please set policy.mode to either file or{' '} database in your Headscale configuration.

)}
); }