You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/react/components/datatables/TableActions.tsx

18 lines
346 B

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>;
}