{"version":3,"file":"SVG_Icon.D6eKf-eP.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/nCHxtXz6uqq1WVU5GP8Z/EQnJn75w9rD6j2U8enWU/SVG_Icon.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";import{ControlType,addPropertyControls}from\"framer\";/**\n * @framerDisableUnlink\n * @framerIntrinsicWidth 24\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight 100%\n */export default function SVGIcon({svgCode,strokeColor,strokeWidth,fillColor,padding}){const[svgContent,setSvgContent]=useState(null);useEffect(()=>{setSvgContent(svgCode||null);},[svgCode]);const updateSvgContent=svg=>{const parser=new DOMParser;const doc=parser.parseFromString(svg,\"image/svg+xml\");const svgElement=doc.querySelector(\"svg\");if(svgElement){svgElement.setAttribute(\"width\",\"100%\");svgElement.setAttribute(\"height\",\"100%\");}const paths=doc.querySelectorAll(\"path\");paths.forEach((path,index)=>{path.setAttribute(\"stroke\",strokeColor);path.setAttribute(\"stroke-width\",strokeWidth.toString());path.setAttribute(\"fill\",fillColor);path.setAttribute(\"fill-opacity\",fillColor===\"none\"?\"0\":\"1\");path.setAttribute(\"key\",`path-${index}`)// Add a unique key attribute\n;});const serializer=new XMLSerializer;return serializer.serializeToString(doc);};const updatedSvgContent=svgContent?updateSvgContent(svgContent):null;return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",padding,boxSizing:\"border-box\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",overflow:\"hidden\"},dangerouslySetInnerHTML:{__html:updatedSvgContent||\"\"}});}SVGIcon.defaultProps={svgCode:`<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n                <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M6 3H18V9H12L6 3Z\" stroke=\"#323232\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n                <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M6 9H12L18 15H6V9Z\" stroke=\"#323232\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n                <path d=\"M12 15V21L6 15\" stroke=\"#323232\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n              </svg>`,strokeColor:\"#000000\",strokeWidth:1.5,fillColor:\"#FFFFFF\",padding:0};addPropertyControls(SVGIcon,{svgCode:{type:ControlType.String,title:\"SVG Code\",defaultValue:`<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n                        <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M6 3H18V9H12L6 3Z\" stroke=\"#323232\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n                        <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M6 9H12L18 15H6V9Z\" stroke=\"#323232\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n                        <path d=\"M12 15V21L6 15\" stroke=\"#323232\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n                      </svg>`},strokeColor:{type:ControlType.Color,title:\"Stroke Color\",defaultValue:\"#000000\"},fillColor:{type:ControlType.Color,title:\"Fill Color\",defaultValue:\"rgba(0, 0, 0, 0)\"},strokeWidth:{type:ControlType.Number,title:\"Stroke Width\",defaultValue:1.5,min:0,max:10},padding:{type:ControlType.Number,title:\"Padding\",defaultValue:0,min:0,max:100,description:\"Created by [Tolv](https://x.com/tolvstudio)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SVGIcon\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"* @framerIntrinsicWidth 24\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLay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