import React from 'react'; export enum IconSide { left = 'left', right = 'right', } type Props = { splitted: boolean; title: string; onClick: () => void; buttonClassName?: string; iconClassName?: string; iconSide?: IconSide; disabled?: boolean; }; export const ResponsiveButton = (props: Props) => { const defaultProps = { iconSide: IconSide.left, }; props = { ...defaultProps, ...props }; const { title, onClick, buttonClassName, iconClassName, splitted, iconSide, disabled } = props; return ( ); };