mirror of https://github.com/portainer/portainer
28 lines
544 B
TypeScript
28 lines
544 B
TypeScript
import clsx from 'clsx';
|
|
|
|
import styles from './AddButton.module.css';
|
|
|
|
export interface Props {
|
|
className?: string;
|
|
label: string;
|
|
onClick: () => void;
|
|
}
|
|
|
|
export function AddButton({ label, onClick, className }: Props) {
|
|
return (
|
|
<button
|
|
className={clsx(
|
|
className,
|
|
'label',
|
|
'label-default',
|
|
'interactive',
|
|
styles.addButton
|
|
)}
|
|
type="button"
|
|
onClick={onClick}
|
|
>
|
|
<i className="fa fa-plus-circle space-right" aria-hidden="true" /> {label}
|
|
</button>
|
|
);
|
|
}
|