Files
2026-07-13 12:08:39 +08:00

20 lines
370 B
TypeScript

import clsx from 'clsx';
import { Children, PropsWithChildren } from 'react';
interface Props {
className?: string;
}
export function TableActions({
children,
className,
}: PropsWithChildren<Props>) {
if (Children.count(children) === 0) {
return null;
}
return (
<div className={clsx('flex items-center gap-2', className)}>{children}</div>
);
}