Portal/rsconcept/frontend/src/components/view/no-data.tsx

13 lines
339 B
TypeScript
Raw Normal View History

2024-06-21 19:16:41 +03:00
import clsx from 'clsx';
/**
* Wraps content in a div with a centered text.
*/
2025-02-22 14:03:13 +03:00
export function NoData({ className, children, ...restProps }: React.ComponentProps<'div'>) {
2024-06-21 19:16:41 +03:00
return (
<div className={clsx('p-3 flex flex-col items-center text-center select-none w-full', className)} {...restProps}>
{children}
</div>
);
}