Portal/rsconcept/frontend/src/components/view/no-data.tsx
2025-03-12 12:04:23 +03:00

13 lines
339 B
TypeScript

import clsx from 'clsx';
/**
* Wraps content in a div with a centered text.
*/
export function NoData({ className, children, ...restProps }: React.ComponentProps<'div'>) {
return (
<div className={clsx('p-3 flex flex-col items-center text-center select-none w-full', className)} {...restProps}>
{children}
</div>
);
}