1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 13:29:41 +02:00
portainer/app/react/components/datatables/TableActions.tsx
2022-09-02 18:30:34 +03:00

17 lines
346 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('actionBar', className)}>{children}</div>;
}