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