// ** React Imports import { useContext } from 'react' // ** Context Imports import { AbilityContext } from 'src/layouts/components/acl/Can' // ** MUI Imports import Grid from '@mui/material/Grid' import Card from '@mui/material/Card' import CardHeader from '@mui/material/CardHeader' import Typography from '@mui/material/Typography' import CardContent from '@mui/material/CardContent' const ACLPage = () => { // ** Hooks const ability = useContext(AbilityContext) return ( No ability is required to view this card This card is visible to 'user' and 'admin' both {ability?.can('read', 'analytics') ? ( User with 'Analytics' subject's 'Read' ability can view this card This card is visible to 'admin' only ) : null} ) } ACLPage.acl = { action: 'read', subject: 'acl-page' } export default ACLPage