mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
re-structure to monorepo.
This commit is contained in:
19
packages/webapp/src/components/EmptyStatus/EmptyStatus.tsx
Normal file
19
packages/webapp/src/components/EmptyStatus/EmptyStatus.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
// @ts-nocheck
|
||||
import React from 'react';
|
||||
import classNames from 'classnames';
|
||||
|
||||
import Style from '@/style/components/DataTable/DataTableEmptyStatus.module.scss';
|
||||
|
||||
/**
|
||||
* Datatable empty status.
|
||||
*/
|
||||
export function EmptyStatus({ title, description, action, children }) {
|
||||
return (
|
||||
<div className={classNames(Style.root)}>
|
||||
<h1 className={classNames(Style.root_title)}>{title}</h1>
|
||||
<div className={classNames(Style.root_desc)}>{description}</div>
|
||||
<div className={classNames(Style.root_actions)}>{action}</div>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
2
packages/webapp/src/components/EmptyStatus/index.ts
Normal file
2
packages/webapp/src/components/EmptyStatus/index.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
// @ts-nocheck
|
||||
export * from './EmptyStatus';
|
||||
Reference in New Issue
Block a user