{"version":3,"file":"BackButton_1.DFpZf6G9.mjs","names":["useCallback"],"sources":["https:/framerusercontent.com/modules/oIEUoPNNv8RRdrGM91n5/q32FZaKHmwA17UILwOiZ/BackButton_1.js"],"sourcesContent":["// 검정색 원에 흰색 X자가 있는 이전 페이지로 돌아가는 버튼\n// This component renders a circular black button with a white X icon, which navigates back to the previous page when clicked.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useCallback,startTransition}from\"react\";/**\n * 이전 페이지로 돌아가는 버튼 (검정색 원 + 흰색 X자)\n *\n * @framerIntrinsicWidth 48\n * @framerIntrinsicHeight 48\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function BackButton(props){const{ariaLabel,backgroundColor,iconColor,size,homeUrl,onClick,style}=props;const handleClick=useCallback(()=>{if(onClick)return onClick();if(typeof window!==\"undefined\"){if(window.history.length>1){startTransition(()=>window.history.back());}else{window.location.href=homeUrl;}}},[onClick,homeUrl]);return /*#__PURE__*/_jsx(\"button\",{\"aria-label\":ariaLabel,onClick:handleClick,style:{...style,width:size,height:size,borderRadius:\"50%\",background:backgroundColor,border:\"none\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",cursor:\"pointer\",boxShadow:\"0 2px 8px rgba(0,0,0,0.08)\",padding:0,outline:\"none\",position:\"relative\"},children:/*#__PURE__*/_jsxs(\"svg\",{width:size*.5,height:size*.5,viewBox:\"0 0 24 24\",fill:\"none\",stroke:iconColor,strokeWidth:\"2.5\",strokeLinecap:\"round\",strokeLinejoin:\"round\",\"aria-hidden\":\"true\",focusable:\"false\",children:[/*#__PURE__*/_jsx(\"line\",{x1:\"6\",y1:\"6\",x2:\"18\",y2:\"18\"}),/*#__PURE__*/_jsx(\"line\",{x1:\"18\",y1:\"6\",x2:\"6\",y2:\"18\"})]})});}addPropertyControls(BackButton,{ariaLabel:{type:ControlType.String,title:\"Aria Label\",defaultValue:\"이전 페이지로 돌아가기 버튼\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#000000\"},iconColor:{type:ControlType.Color,title:\"Icon Color\",defaultValue:\"#FFFFFF\"},size:{type:ControlType.Number,title:\"Size\",defaultValue:48,min:24,max:120,step:1,unit:\"px\"},homeUrl:{type:ControlType.Link,title:\"Home URL\",defaultValue:\"/\"},onClick:{type:ControlType.EventHandler,title:\"On Click\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BackButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"48\",\"framerIntrinsicHeight\":\"48\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BackButton_1.map"],"mappings":"sMAUG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,YAAU,kBAAgB,YAAU,OAAK,UAAQ,UAAQ,SAAO,EAAY,EAAYA,MAAgB,CAAC,GAAG,EAAQ,OAAO,GAAS,CAAW,IAAS,SAAgB,EAAO,QAAQ,OAAO,EAAG,MAAoB,EAAO,QAAQ,MAAM,CAAC,CAAO,EAAO,SAAS,KAAK,IAAY,CAAC,EAAQ,EAAQ,CAAC,CAAC,OAAoB,EAAK,SAAS,CAAC,aAAa,EAAU,QAAQ,EAAY,MAAM,CAAC,GAAG,EAAM,MAAM,EAAK,OAAO,EAAK,aAAa,MAAM,WAAW,EAAgB,OAAO,OAAO,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,OAAO,UAAU,UAAU,6BAA6B,QAAQ,EAAE,QAAQ,OAAO,SAAS,WAAW,CAAC,SAAsB,EAAM,MAAM,CAAC,MAAM,EAAK,GAAG,OAAO,EAAK,GAAG,QAAQ,YAAY,KAAK,OAAO,OAAO,EAAU,YAAY,MAAM,cAAc,QAAQ,eAAe,QAAQ,cAAc,OAAO,UAAU,QAA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