UNPKG

sp-image-editor

Version:

React component version of filerobot image editor (FIE).

1 lines 688 B
import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import React from"react";import{useAnnotation}from"../../../hooks";import{TOOLS_IDS}from"../../../utils/constants";import AnnotationOptions from"../../common/AnnotationOptions";import{rectOptionsPopupComponents,RECT_POPPABLE_OPTIONS}from"./Rect.constants";var RectOptions=function(a){var b=a.t,c=useAnnotation({name:TOOLS_IDS.RECT}),d=_slicedToArray(c,2),e=d[0],f=d[1];return React.createElement(AnnotationOptions,{className:"FIE_rect-tool-options",moreOptionsPopupComponentsObj:rectOptionsPopupComponents,morePoppableOptionsPrepended:RECT_POPPABLE_OPTIONS,annotation:e,updateAnnotation:f,t:b})};export default RectOptions;