--- export interface Props { /** Page URL (defaults to current page) */ url?: string; /** Page title */ title?: string; } const { url, title } = Astro.props; const pageUrl = url ?? Astro.url.href; const pageTitle = title ?? ""; const encodedUrl = encodeURIComponent(pageUrl); const encodedTitle = encodeURIComponent(pageTitle); const SHARE_LINKS = [ { label: "X", href: `https://x.com/intent/tweet?url=${encodedUrl}&text=${encodedTitle}`, svg: '', }, { label: "Facebook", href: `https://www.facebook.com/sharer/sharer.php?u=${encodedUrl}`, svg: '', }, { label: "URLコピー", href: "#", svg: '', }, ]; ---