import type { ReactNode } from 'react'; import Can from '@/components/elements/Can'; import { ServerError } from '@/components/elements/ScreenBlock'; export interface RequireServerPermissionProps { children?: ReactNode; permissions: string | string[]; } function RequireServerPermission({ children, permissions }: RequireServerPermissionProps) { return ( } > {children} ); } export default RequireServerPermission;