import React from 'react';
import cn from 'classnames';
type ButtonProps = {
buttonType: 'primary' | 'secondary' | 'iconOnly';
size: 's' | 'm' | 'l';
arrow?: 'right' | 'left';
children?: React.ReactNode;
handleTrigger?: () => void;
isDisabled?: boolean;
};
// This is temporary unttil icons are implemented
const ArrowIcon = props => {
if (props.arrow === 'right') {
return (
);
}
return (
);
};
export const Button: React.FC = ({
buttonType = 'primary',
size = 'm',
arrow,
children,
handleTrigger = () => {},
isDisabled,
}: ButtonProps) => {
const classes = cn(
'bfo-button',
`bfo-button--${buttonType}`,
`bfo-button--${size}`,
arrow && `bfo-button--${arrow}`,
isDisabled && 'bfo-button--disabled',
);
return (
);
};