import { FC } from 'react'; import ContainedButton, { ContainedButtonProps } from './ContainedButton'; type SuggestButtonOptionalProps = { show?: boolean; }; type SuggestButtonProps = ContainedButtonProps & SuggestButtonOptionalProps; const SUGGEST_BUTTON_DEFAULT_PROPS: Required = { show: true, }; const SuggestButton: FC = ({ onClick, show: isShow = SUGGEST_BUTTON_DEFAULT_PROPS.show, ...restProps }) => isShow ? ( Suggest ) : ( <> ); SuggestButton.defaultProps = SUGGEST_BUTTON_DEFAULT_PROPS; export default SuggestButton;