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