Function: Cannot()
ts
function Cannot(props): Element | null;Defined in: packages/react/src/components.tsx:60
Renders children if the user does NOT have the permission(s) — like spatie's @cannot.
Parameters
| Parameter | Type |
|---|---|
props | CannotProps |
Returns
Element | null
