// This file is part of Coog. The COPYRIGHT file at the top level of // this repository contains the full copyright notices and license terms. import React, { FC } from 'react'; import cn from 'classnames'; import { ConfirmationButtonProps } from './ConfirmationButton.types'; import './ConfirmationButton.scss'; /** * ConfirmationButton component * @param props * @returns {XML} * @constructor */ const ConfirmationButton: FC = ({ label, disabled = false, isBtnOpen = false, handlerMainButton, children, }: ConfirmationButtonProps): JSX.Element => (
{isBtnOpen ? ( children ) : ( )}
); export default ConfirmationButton; export { ConfirmationButtonProps };