mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
30 lines
674 B
TypeScript
30 lines
674 B
TypeScript
// @ts-nocheck
|
|
import React from 'react';
|
|
import clsx from 'classnames';
|
|
|
|
import Style from '@/style/components/DataTable/DataTableEmptyStatus.module.scss';
|
|
|
|
/**
|
|
* Datatable empty status.
|
|
*/
|
|
export function EmptyStatus({
|
|
title,
|
|
description,
|
|
action,
|
|
children,
|
|
classNames,
|
|
}) {
|
|
return (
|
|
<div className={clsx(Style.root, classNames?.root)}>
|
|
<h1 className={clsx(Style.root_title, classNames?.title)}>{title}</h1>
|
|
<div className={clsx(Style.root_desc, classNames?.description)}>
|
|
{description}
|
|
</div>
|
|
<div className={clsx(Style.root_actions, classNames?.actions)}>
|
|
{action}
|
|
</div>
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|