| 6 | import { type ADMIN, hasPermission, type Permission, type Section } from "src/modules/Permissions"; |
| 7 | |
| 8 | interface Props { |
| 9 | section?: Section | typeof ADMIN; |
| 10 | permission: Permission; |
| 11 | hideError?: boolean; |
| 12 | children?: ReactNode; |
| 13 | pageLoading?: boolean; |
| 14 | loadingNoLogo?: boolean; |
| 15 | } |
| 16 | function HasPermission({ |
| 17 | section, |
| 18 | permission, |
nothing calls this directly
no outgoing calls
no test coverage detected