1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-20 05:49:40 +02:00
portainer/app/portainer/components/Button/AddButton.tsx

26 lines
492 B
TypeScript
Raw Normal View History

import clsx from 'clsx';
import styles from './AddButton.module.css';
export interface Props {
label: string;
onClick: () => void;
}
export function AddButton({ label, onClick }: Props) {
return (
<button
className={clsx(
'label',
'label-default',
'interactive',
styles.addButton
)}
type="button"
onClick={onClick}
>
<i className="fa fa-plus-circle space-right" aria-hidden="true" /> {label}
</button>
);
}