{"version":3,"file":"CopyUrlButton.CDPR_NGN.mjs","names":[],"sources":["https:/framerusercontent.com/modules/CnPlmPROshWxEAU042jF/v9OGGLtqnZPBL9ADnVnj/CopyUrlButton.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export function CopyUrlButton(props){const{text,width,height,backgroundColor,textColor,fontFamily}=props;const handleClick=()=>{const currentUrl=window.location.href;navigator.clipboard.writeText(currentUrl).then(()=>{alert(\"링크가 복사되었습니다.\");}).catch(err=>{console.error(\"링크 복사 실패: \",err);});};return /*#__PURE__*/_jsx(\"button\",{onClick:handleClick,style:{width:width,height:height,backgroundColor:backgroundColor,color:textColor,border:\"none\",borderRadius:\"8px\",fontSize:\"16px\",cursor:\"pointer\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontFamily:fontFamily},children:text});}// 기본 속성 설정\nCopyUrlButton.defaultProps={text:\"아티클 공유하기\",width:138,height:52,backgroundColor:\"#5CA8FF\",textColor:\"#FFFFFF\",fontFamily:\"TossProductSansOTF-Semibold\"};// 속성 패널에 표시될 속성 추가\naddPropertyControls(CopyUrlButton,{text:{type:ControlType.String,title:\"Button Text\"},width:{type:ControlType.Number,title:\"Width\",defaultValue:138},height:{type:ControlType.Number,title:\"Height\",defaultValue:52},backgroundColor:{type:ControlType.Color,title:\"Background Color\"},textColor:{type:ControlType.Color,title:\"Text Color\"},fontFamily:{type:ControlType.String,title:\"Font Family\",defaultValue:\"TossProductSansOTF-Semibold\"}});export default CopyUrlButton;\nexport const __FramerMetadata__ = {\"exports\":{\"CopyUrlButton\":{\"type\":\"reactComponent\",\"name\":\"CopyUrlButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"CopyUrlButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CopyUrlButton.map"],"mappings":"wRAA+F,SAAgB,EAAc,EAAM,CAAC,GAAK,CAAC,OAAK,QAAM,SAAO,kBAAgB,YAAU,aAAW,CAAC,EAAY,EAAY,IAAI,CAAC,IAAM,EAAW,EAAO,SAAS,KAAK,EAAU,UAAU,UAAU,EAAW,CAAC,KAAK,IAAI,CAAC,MAAM,eAAe,AAAE,EAAC,CAAC,MAAM,GAAK,CAAC,QAAQ,MAAM,aAAa,EAAI,AAAE,EAAC,AAAE,EAAC,MAAoB,GAAK,SAAS,CAAC,QAAQ,EAAY,MAAM,CAAO,QAAa,SAAuB,kBAAgB,MAAM,EAAU,OAAO,OAAO,aAAa,MAAM,SAAS,OAAO,OAAO,UAAU,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAoB,YAAW,EAAC,SAAS,CAAK,EAAC,AAAE,oBAAhrB,GAA2C,IAAoD,CAC/F,EAAc,aAAa,CAAC,KAAK,WAAW,MAAM,IAAI,OAAO,GAAG,gBAAgB,UAAU,UAAU,UAAU,WAAW,6BAA8B,EACvJ,EAAoB,EAAc,CAAC,KAAK,CAAC,KAAK,EAAY,OAAO,MAAM,aAAc,EAAC,MAAM,CAAC,KAAK,EAAY,OAAO,MAAM,QAAQ,aAAa,GAAI,EAAC,OAAO,CAAC,KAAK,EAAY,OAAO,MAAM,SAAS,aAAa,EAAG,EAAC,gBAAgB,CAAC,KAAK,EAAY,MAAM,MAAM,kBAAmB,EAAC,UAAU,CAAC,KAAK,EAAY,MAAM,MAAM,YAAa,EAAC,WAAW,CAAC,KAAK,EAAY,OAAO,MAAM,cAAc,aAAa,6BAA8B,CAAC,EAAC,GAAgB"}