import { ReactNode } from 'react'; import Icon from '../Icon'; import './NoData.scss'; export interface NoDataProps { /** * The content that to be displayed if no data not found */ content: string | ReactNode; /** * Image that to be displayed if you don't have data */ image?: string; /** * Size of the image that to be displayed if you don't have data */ size?: 'x-large' | 'large' | 'medium' | 'small' | 'x-small'; } const NoData = ({ content, image, size }: NoDataProps) => { return (
{content}
); }; export default NoData;