1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-20 13:59:40 +02:00
portainer/app/react/components/buttons/AddButton.tsx
Ali d78b762f7b
refactor(icons): replace fa icons [EE-4459] (#7907)
refactor(icons): remove fontawesome EE-4459

refactor(icon) replace feather with lucide EE-4472
2022-11-28 15:00:28 +13:00

35 lines
714 B
TypeScript

import clsx from 'clsx';
import { PlusCircle } from 'lucide-react';
import { Icon } from '@/react/components/Icon';
import styles from './AddButton.module.css';
export interface Props {
className?: string;
label: string;
disabled?: boolean;
onClick: () => void;
}
export function AddButton({ label, onClick, className, disabled }: Props) {
return (
<button
className={clsx(
className,
'label',
'label-default',
'vertical-center',
'interactive',
'vertical-center',
styles.addButton
)}
type="button"
onClick={onClick}
disabled={disabled}
>
<Icon icon={PlusCircle} />
{label}
</button>
);
}