import React, { ReactElement } from "react"; import Icon, { IconProp } from "../icon"; interface Props { icon?: IconProp; children?: string | ReactElement | ReactElement[]; action?: ReactElement | ReactElement[]; } const EmptyPlaceholder = ({ icon, children, action }: Props) => { return (
{ icon && }
{ children }
{ action &&
{action}
}
); } export default EmptyPlaceholder;