import { TLArrowShape, TLDrawShape, TLGroupShape, TLLineShape, useEditor, useValue, } from '@bigbluebutton/editor' export function useOnlyFlippableShape() { const editor = useEditor() return useValue( 'onlyFlippableShape', () => { const selectedShapes = editor.getSelectedShapes() return ( selectedShapes.length === 1 && selectedShapes.every( (shape) => editor.isShapeOfType(shape, 'group') || editor.isShapeOfType(shape, 'arrow') || editor.isShapeOfType(shape, 'line') || editor.isShapeOfType(shape, 'draw') ) ) }, [editor] ) }