import clsx from 'clsx'; import React from 'react'; import dynamicsFont from '../../assets/DynamicsFont/DynamicsFont.scss'; import styles from './styles.scss'; type BackButtonProps = { label?: string; showIcon?: boolean; }; const BackButton: React.FC = ({ label, showIcon }) => { return ( {showIcon ? ( ) : null} {label ? ( {label} ) : null} ); }; BackButton.defaultProps = { label: undefined, showIcon: true, }; export default BackButton;