import { FunctionComponent } from 'react'; export const NoItems: FunctionComponent<{ /** * i.e. "products", "cases" */ resource: string; /** * i.e. "system", "queue" */ resourceMissingFrom: string; /** * What the user can do to resolve the issue */ suggestions: string[]; /** * An SVG to display above the title */ illustration: JSX.Element; }> = ({ resource, resourceMissingFrom, suggestions, illustration }) => { return (
{illustration}

No {resource} found

It looks like there aren't any {resource} in your {resourceMissingFrom} right now.

What can you do now?
    {suggestions?.map(step => (
  • {step}
  • ))}
); };