"use client"; import { useState, useRef } from "react"; import { Copy, Check, Hash, Type, Percent, Ruler, Zap, Wand2, Building2, FileDown, ScanText, } from "lucide-react"; import { Button } from "@/shared/components/ui/button"; import { Input } from "@/shared/components/ui/input"; import { Label } from "@/shared/components/ui/label"; import { Textarea } from "@/shared/components/ui/textarea"; import { Card, CardContent, CardHeader, CardTitle, } from "@/shared/components/ui/card"; import { Tabs, TabsContent, TabsList, TabsTrigger, } from "@/shared/components/ui/tabs"; function CopyButton({ text }: { text: string }) { const [copied, setCopied] = useState(false); const handleCopy = async () => { try { await navigator.clipboard.writeText(text); setCopied(true); setTimeout(() => setCopied(false), 1500); } catch { /* silent */ } }; return ( ); } function TextCaseConverter() { const [input, setInput] = useState(""); const upper = input.toUpperCase(); const lower = input.toLowerCase(); const title = input.replace(/\b\w/g, (c) => c.toUpperCase()); const sentence = input.charAt(0).toUpperCase() + input.slice(1).toLowerCase(); return (