"use client" import { useTranslation, type Translations, } from "@/components/language-selector" import { Button } from "@/styles/radix-nova/ui-rtl/button" import { HoverCard, HoverCardContent, HoverCardTrigger, } from "@/styles/radix-nova/ui-rtl/hover-card" const translations: Translations = { en: { dir: "ltr", values: { trigger: "Wireless Headphones", name: "Wireless Headphones", price: "$99.99", left: "Left", top: "Top", bottom: "Bottom", right: "Right", }, }, ar: { dir: "rtl", values: { trigger: "سماعات لاسلكية", name: "سماعات لاسلكية", price: "٩٩.٩٩ $", left: "يسار", top: "أعلى", bottom: "أسفل", right: "يمين", }, }, he: { dir: "rtl", values: { trigger: "אוזניות אלחוטיות", name: "אוזניות אלחוטיות", price: "99.99 $", left: "שמאל", top: "למעלה", bottom: "למטה", right: "ימין", }, }, } const physicalSides: Array<"left" | "top" | "bottom" | "right"> = [ "left", "top", "bottom", "right", ] export function HoverCardRtl() { const { dir, t } = useTranslation(translations, "ar") return (