import clsx from "clsx"; import React from "react"; import styles from "./index.module.scss"; interface Props { text?: string; render?: React.ReactNode; img?: string; type?: "auto" | "full"; className?: string; iconClassName?: string; } const Empty: React.FC = ({ text = "no data", render, img = "/empty.webp", type = "auto", className, iconClassName, }) => { return (
{!render && (
)} {render}
{text}
); }; export default Empty;