"use client" import { useTranslation, type Translations, } from "@/components/language-selector" import { Button } from "@/styles/radix-nova/ui-rtl/button" import { Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, } from "@/styles/radix-nova/ui-rtl/popover" const translations: Translations = { en: { dir: "ltr", values: { title: "Dimensions", description: "Set the dimensions for the layer.", left: "Left", top: "Top", bottom: "Bottom", right: "Right", }, }, ar: { dir: "rtl", values: { title: "الأبعاد", description: "تعيين الأبعاد للطبقة.", left: "يسار", top: "أعلى", bottom: "أسفل", right: "يمين", }, }, he: { dir: "rtl", values: { title: "מימדים", description: "הגדר את המימדים לשכבה.", left: "שמאל", top: "למעלה", bottom: "למטה", right: "ימין", }, }, } const physicalSides = ["left", "top", "bottom", "right"] as const export function PopoverRtl() { const { dir, t } = useTranslation(translations, "ar") return (
{physicalSides.map((side) => ( {t.title} {t.description} ))}
) }