diff --git a/src/custom/ActionButton/ActionButton.tsx b/src/custom/ActionButton/ActionButton.tsx index 86937c6a..dc8d1647 100644 --- a/src/custom/ActionButton/ActionButton.tsx +++ b/src/custom/ActionButton/ActionButton.tsx @@ -3,6 +3,7 @@ import { Button, ButtonGroup, ClickAwayListener, + Divider, MenuItem, MenuList, Paper, @@ -13,16 +14,20 @@ interface Option { icon: React.ReactNode; label: string; onClick: (event: React.MouseEvent, index: number) => void; + isDivider?: boolean; + show?: boolean; } interface ActionButtonProps { defaultActionClick: () => void; + defaultActionDisabled?: boolean; options: Option[]; label: string; } export default function ActionButton({ defaultActionClick, + defaultActionDisabled = false, options, label }: ActionButtonProps): JSX.Element { @@ -50,7 +55,7 @@ export default function ActionButton({ style={{ boxShadow: 'none' }} aria-label="Button group with a nested menu" > -