import type { Table as ReactTable } from "@tanstack/react-table"; import cn from "classnames"; import type { ReactNode } from "react"; import { Button } from "src/components"; import { T } from "src/locale"; interface Props { tableInstance: ReactTable; onNew?: () => void; isFiltered?: boolean; object: string; objects: string; color?: string; customAddBtn?: ReactNode; } function EmptyData({ tableInstance, onNew, isFiltered, object, objects, color = "primary", customAddBtn }: Props) { return (
{isFiltered ? (

) : ( <>

{customAddBtn ? ( customAddBtn ) : ( )} )}
); } export { EmptyData };