2024-06-21 19:16:41 +03:00
|
|
|
import clsx from 'clsx';
|
|
|
|
|
2025-01-28 23:23:03 +03:00
|
|
|
import { CProps } from '@/components/props';
|
2024-06-21 19:16:41 +03:00
|
|
|
|
2024-11-21 15:09:31 +03:00
|
|
|
/**
|
|
|
|
* Wraps content in a div with a centered text.
|
|
|
|
*/
|
2024-06-21 19:16:41 +03:00
|
|
|
function NoData({ className, children, ...restProps }: CProps.Div) {
|
|
|
|
return (
|
|
|
|
<div className={clsx('p-3 flex flex-col items-center text-center select-none w-full', className)} {...restProps}>
|
|
|
|
{children}
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default NoData;
|