import * as React from "react"; import { Button, IButtonProps } from "../Button"; import { Image, IImageProps } from "../Image"; import { Upload, IUploadProps } from "../Upload"; export interface IEmptyProps { title?: string; text?: string; image?: IImageProps; button?: IButtonProps; upload?: IUploadProps; } export const Empty = ({ button, upload, text, title, image, }: IEmptyProps) => (
{image && (
)} {title && (
{title}
)} {text && (
{text}
)} {button && (
)} {upload && (
)}
);