PageSourceSearch

https://farcaster.xyz/assets/GroupInviteLink-qTlB73Sy.js

js farcaster.xyz collected 2026-09-24 08:34:17 UTC 1,563 bytes, 1 lines download raw bytes

1import{r as a,R as i,j as e}from"./vendor-wagmi-CRHMQcRy.js";import{N as n,O as h,P as j,f as y}from"./index-CjDX1y09.js";const w=({groupInviteLink:s,subtext:d,className:x,onCopy:l,resetLink:t})=>{const[f,r]=a.useState(!1),u=i.useCallback(()=>{typeof s>"u"||(navigator.clipboard.writeText(s),l?.(),r(!0),setTimeout(()=>{r(!1)},2e3))},[s,l]),[m,o]=a.useState(!1),[b,c]=a.useState(!1),p=i.useCallback(async()=>{try{c(!0),await t(),o(!0),setTimeout(()=>{o(!1)},2e3)}finally{c(!1)}},[t]);return e.jsxs("div",{className:y("flex flex-row items-center rounded-[10px] border px-[10px] py-2 border-default",x),children:[e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("div",{className:"text-base font-medium",children:"Share invite link"}),e.jsx("div",{className:"block w-full truncate text-xs text-faint",children:d||s.replace(/(^\w+:|^)\/\//,"")})]}),e.jsxs("div",{className:"flex flex-none flex-row items-center gap-2",children:[e.jsx("button",{className:"size-[32px] cursor-pointer flex-row items-center justify-center rounded-full border text-sm bg-overlay-light border-default hover:bg-overlay-medium",onClick:u,children:f?e.jsx(n,{size:16,className:"text-default"}):e.jsx(h,{size:16,className:"text-default"})}),t&&e.jsx("button",{className:"size-[32px] cursor-pointer flex-row items-center justify-center rounded-full border text-sm bg-overlay-light border-default hover:bg-overlay-medium disabled:opacity-50",onClick:p,disabled:b,children:m?e.jsx(n,{size:16,className:"text-default"}):e.jsx(j,{size:16,className:"text-default"})})]})]})};export{w as G};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.