{"version":3,"file":"Back_Button.RoDF7ufY.mjs","names":[],"sources":["https:/framerusercontent.com/modules/Pr3oo0STgfLifkTS9wuL/9ZM9cNzgyv88LsuLXEHa/Back_Button.js"],"sourcesContent":["// A custom Framer code override by Chris Kellett - Framerverse\n// Get more components at www.framerverse.com\n// Previous Page Overide\n// Version 1.0\nimport{jsx as _jsx}from\"react/jsx-runtime\";/**\n * This override adds a click handler to go back in browser history\n * @param Component - The component to apply the override to\n * @returns A component with the history back functionality\n */export function withHistoryBack(Component){// This part runs once when creating the override\nreturn props=>{// This function handles the actual navigation\nconst handleGoBack=()=>{// Check if we can go back in history\nif(window.history.length>1){window.history.back();}else{// If no history exists, log a message\nconsole.log(\"No previous page in history\");}};// Return the component with our click handler\nreturn /*#__PURE__*/_jsx(Component,{...props,onClick:handleGoBack});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withHistoryBack\":{\"type\":\"reactHoc\",\"name\":\"withHistoryBack\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Back_Button.map"],"mappings":"kKAQG,SAAgB,EAAgB,EAAU,CAC7C,MAAO,CAAA,GAAO,CACd,IAAM,EAAa,IAAI,CACvB,AAAG,EAAO,QAAQ,OAAO,EAAG,EAAO,QAAQ,MAAM,CACjD,QAAQ,IAAI,8BAA8B,AAAG,EAC7C,MAAoB,GAAK,EAAU,CAAC,GAAG,EAAM,QAAQ,CAAa,EAAC,AAAE,CAAE,cATvE,IAAA,GAA2C"}