mirror of https://github.com/portainer/portainer
18 lines
346 B
TypeScript
18 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>;
|
|
}
|