{"version":3,"file":"CopyUrlButton.CFphZA22.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,MAAgB,CAAC,IAAM,EAAW,EAAO,SAAS,KAAK,EAAU,UAAU,UAAU,GAAY,SAAS,CAAC,MAAM,eAAiB,GAAE,MAAM,GAAK,CAAC,QAAQ,MAAM,aAAa,EAAM,EAAG,EAAC,OAAoB,EAAK,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,aAAW,CAAC,SAAS,EAAK,CAAG,2BAChrB,EAAc,aAAa,CAAC,KAAK,WAAW,MAAM,IAAI,OAAO,GAAG,gBAAgB,UAAU,UAAU,UAAU,WAAW,8BAA8B,CACvJ,EAAoB,EAAc,CAAC,KAAK,CAAC,KAAK,EAAY,OAAO,MAAM,cAAc,CAAC,MAAM,CAAC,KAAK,EAAY,OAAO,MAAM,QAAQ,aAAa,IAAI,CAAC,OAAO,CAAC,KAAK,EAAY,OAAO,MAAM,SAAS,aAAa,GAAG,CAAC,gBAAgB,CAAC,KAAK,EAAY,MAAM,MAAM,mBAAmB,CAAC,UAAU,CAAC,KAAK,EAAY,MAAM,MAAM,aAAa,CAAC,WAAW,CAAC,KAAK,EAAY,OAAO,MAAM,cAAc,aAAa,8BAA8B,CAAC"}