UNPKG

@zergo0/react-filerobot-image-editor

Version:

React component version of filerobot image editor (FIE).

1 lines 660 B
import React from"react";import CrossOutline from"@scaleflex/icons/cross-outline";import{useStore}from"../../hooks";import Separator from"../common/Separator";import{StyledCloseButton}from"./Topbar.styled";import ConfirmationModal from"./ConfirmationModal";import{jsx as _jsx,Fragment as _Fragment,jsxs as _jsxs}from"react/jsx-runtime";var CloseButton=function(){var a=useStore(),b=a.config.onClose;return"function"==typeof b?_jsxs(_Fragment,{children:[_jsx(Separator,{}),_jsx(ConfirmationModal,{children:_jsx(StyledCloseButton,{className:"FIE_topbar-close-button",color:"basic",size:"md",children:_jsx(CrossOutline,{})})})]}):null};export default CloseButton;