import { Button } from '@8base/boost'; import React from 'react'; import { OverwritableType } from 'types'; // -- TYPES interface IActionProps { children: React.ReactNode; tagName: T; isSquared?: boolean; } // -- MAIN function ActionButton({ children, isSquared, tagName, ...domAttrs }: OverwritableType, T>) { const Tag: React.ReactType = tagName; return ( <> {isSquared ? ( ) : ( {children} )} ); } ActionButton.defaultProps = { tagName: 'button', }; export default ActionButton;