{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/ccrVvn29cGCf9xg0gmw2/LjmBBSefhPI0Ko7Djsdo/Blue_Button.js"],
  "sourcesContent": ["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { createStore } from \"https://framer.com/m/framer/store.js@^1.0.0\";\nimport { randomColor } from \"https://framer.com/m/framer/utils.js@^0.9.0\"; // Learn more: https://www.framer.com/docs/guides/overrides/\nconst useStore = createStore({\n  background: \"#0099FF\"\n});\nexport function withRotate(Component) {\n  return props => {\n    return /*#__PURE__*/_jsx(Component, {\n      ...props,\n      animate: {\n        rotate: 90\n      },\n      transition: {\n        duration: 2\n      }\n    });\n  };\n}\nexport function withHover(Component) {\n  return props => {\n    return /*#__PURE__*/_jsx(Component, {\n      ...props,\n      whileHover: {\n        scale: 1.05,\n        opacity: .8,\n        boxShadow: \"0px 2px 8px 2px rgba(47, 191, 255, 0.4)\"\n      }\n    });\n  };\n}\nexport function withRandomColor(Component) {\n  return props => {\n    const [store, setStore] = useStore();\n    return /*#__PURE__*/_jsx(Component, {\n      ...props,\n      animate: {\n        background: store.background\n      },\n      onClick: () => {\n        setStore({\n          background: randomColor()\n        });\n      }\n    });\n  };\n}\nexport const __FramerMetadata__ = {\n  \"exports\": {\n    \"withRotate\": {\n      \"type\": \"reactHoc\",\n      \"name\": \"withRotate\",\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"withRandomColor\": {\n      \"type\": \"reactHoc\",\n      \"name\": \"withRandomColor\",\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"withHover\": {\n      \"type\": \"reactHoc\",\n      \"name\": \"withHover\",\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"__FramerMetadata__\": {\n      \"type\": \"variable\"\n    }\n  }\n};\n//# sourceMappingURL=./Blue_Button.map"],
  "mappings": "kFAGA,IAAMA,EAAWC,EAAY,CAC3B,WAAY,SACd,CAAC,EAcM,SAASC,EAAUC,EAAW,CACnC,OAAOC,GACeC,EAAKF,EAAW,CAClC,GAAGC,EACH,WAAY,CACV,MAAO,KACP,QAAS,GACT,UAAW,yCACb,CACF,CAAC,CAEL",
  "names": ["useStore", "createStore", "withHover", "Component", "props", "p"]
}
