import React from 'react'; import { Flex, Padded, Text } from '@buffetjs/core'; import { useIntl } from 'react-intl'; import { BaselineAlignment, useQuery } from 'strapi-helper-plugin'; const EmptyRole = () => { const { formatMessage } = useIntl(); const query = useQuery(); const search = query.get('_q'); return ( <> {formatMessage( { id: 'Roles.components.List.empty.withSearch', defaultMessage: 'There is no role corresponding to the search ({search})...', }, { search } )} ); }; export default EmptyRole;