"use client"; import { useState, useCallback, useEffect } from "react"; import { Link2, Clock, Calendar, User, Share2, Check, } from "lucide-react"; import { Button } from "@/components/ui/button"; import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, } from "@/components/ui/tooltip"; import { cn } from "@/lib/utils"; export interface BlogPostMetaProps { /** Path (e.g. /blog/slug). Full URL is built on client for share/copy. */ url: string; title: string; readingTimeMinutes: number; /** Shamsi publish date (e.g. "۱۴۰۳/۰۸/۱۵") */ date?: string | null; /** ISO date for