import {
  useEditor,
  useValue
} from "@cmpd/editor";
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]
  );
}
export {
  useOnlyFlippableShape
};
//# sourceMappingURL=useOnlyFlippableShape.mjs.map
