"use client" import { useTranslation, type Translations, } from "@/components/language-selector" import { Button } from "@/styles/base-nova/ui-rtl/button" import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, } from "@/styles/base-nova/ui-rtl/dialog" import { Field, FieldGroup } from "@/styles/base-nova/ui-rtl/field" import { Input } from "@/styles/base-nova/ui-rtl/input" import { Label } from "@/styles/base-nova/ui-rtl/label" const translations: Translations = { en: { dir: "ltr", values: { openDialog: "Open Dialog", editProfile: "Edit profile", description: "Make changes to your profile here. Click save when you're done.", name: "Name", username: "Username", cancel: "Cancel", saveChanges: "Save changes", }, }, ar: { dir: "rtl", values: { openDialog: "فتح الحوار", editProfile: "تعديل الملف الشخصي", description: "قم بإجراء تغييرات على ملفك الشخصي هنا. انقر فوق حفظ عند الانتهاء.", name: "الاسم", username: "اسم المستخدم", cancel: "إلغاء", saveChanges: "حفظ التغييرات", }, }, he: { dir: "rtl", values: { openDialog: "פתח דיאלוג", editProfile: "ערוך פרופיל", description: "בצע שינויים בפרופיל שלך כאן. לחץ על שמור כשתסיים.", name: "שם", username: "שם משתמש", cancel: "בטל", saveChanges: "שמור שינויים", }, }, } export function DialogRtl() { const { dir, t, language } = useTranslation(translations, "ar") return (
}> {t.openDialog} {t.editProfile} {t.description} }> {t.cancel}
) }