import React from 'react' ; import { EuiEmptyPrompt } from '@elastic/eui' ; interface Props { title : React . ReactNode ; message : React . ReactNode | string ; } export const NotAuthorizedSection = ( { title , message } ) => ( < EuiEmptyPrompt iconType = "securityApp" title = { < h2 > { title } < /h2>} body={<p>{message}</p > } />);