import{r as n,j as s}from"./index-AZqeJDgJ.js";import{F as o,a as l,T as d,b as h,W as p,c as x,L as m,d as j}from"./index-CK8O1fEM.js";const v=({url:e,adTitle:i})=>{const[a,t]=n.useState(!1),c=()=>{navigator.clipboard.writeText(e).then(()=>{t(!0),setTimeout(()=>t(!1),2e3)}).catch(r=>{console.error("Failed to copy text: ",r)})};return s.jsx("div",{id:"section7",className:"section-hm new-sect descrp2 share-me pt50",style:{marginTop:"5px"},children:s.jsxs("div",{className:"container",children:[s.jsx("div",{className:"row at-center",children:s.jsx("div",{className:"col-sm-12 d-min-height",children:s.jsx("div",{className:"project-title",children:s.jsxs("ul",{className:"about-g-t more2",children:[s.jsx("li",{children:"Get another opinion,"}),s.jsxs("li",{children:["Share ",i," "]})]})})})}),s.jsx("div",{className:"share-info",children:s.jsxs("div",{className:"row",children:[s.jsx("div",{className:"col-sm-6",children:s.jsx("div",{className:"copylink",children:s.jsx("div",{className:"col-sm-12weft",children:s.jsxs("div",{className:"input-group mb-3",children:[s.jsx("input",{type:"text",className:"form-control",readOnly:!0,id:"cpy_text",value:e}),s.jsx("div",{className:"input-group-append",children:s.jsx("span",{className:`input-group-text ${a?"copied":""}`,id:"basic-addon2",onClick:c,children:a?"Link Copied!":"Copy Link"})})]})})})}),s.jsx("div",{className:"col-sm-6",children:s.jsxs("div",{className:"social-share-buttons",children:[s.jsx(o,{url:e,children:s.jsx(l,{size:48,round:!0})}),s.jsx(d,{url:e,title:i,children:s.jsx(h,{size:48,round:!0})}),s.jsx(p,{url:e,title:i,children:s.jsx(x,{size:48,round:!0})}),s.jsx(m,{url:e,title:i,children:s.jsx(j,{size:48,round:!0})})]})})]})})]})})};export{v as S};
