import React, { FC } from 'react'; import { CallToActionCard } from '@grafana/ui'; import EmptyListCTA from 'app/core/components/EmptyListCTA/EmptyListCTA'; import { useRulesAccess } from '../../utils/accessControlHooks'; export const NoRulesSplash: FC = () => { const { canCreateGrafanaRules, canCreateCloudRules } = useRulesAccess(); if (canCreateGrafanaRules || canCreateCloudRules) { return ( ); } return } />; };