"use client" import * as React from "react" import { useTranslation, type Translations, } from "@/components/language-selector" import { Checkbox } from "@/styles/base-nova/ui-rtl/checkbox" import { Field, FieldContent, FieldDescription, FieldGroup, FieldLabel, FieldTitle, } from "@/styles/base-nova/ui-rtl/field" import { Label } from "@/styles/base-nova/ui-rtl/label" const translations: Translations = { en: { dir: "ltr", values: { acceptTerms: "Accept terms and conditions", acceptTermsDescription: "By clicking this checkbox, you agree to the terms.", enableNotifications: "Enable notifications", enableNotificationsDescription: "You can enable or disable notifications at any time.", }, }, ar: { dir: "rtl", values: { acceptTerms: "قبول الشروط والأحكام", acceptTermsDescription: "بالنقر على هذا المربع، فإنك توافق على الشروط.", enableNotifications: "تفعيل الإشعارات", enableNotificationsDescription: "يمكنك تفعيل أو إلغاء تفعيل الإشعارات في أي وقت.", }, }, he: { dir: "rtl", values: { acceptTerms: "קבל תנאים והגבלות", acceptTermsDescription: "על ידי לחיצה על תיבת הסימון הזו, אתה מסכים לתנאים.", enableNotifications: "הפעל התראות", enableNotificationsDescription: "אתה יכול להפעיל או להשבית התראות בכל עת.", }, }, } export function CheckboxRtl() { const { dir, t } = useTranslation(translations, "ar") return ( {t.acceptTerms} {t.acceptTermsDescription} {t.enableNotifications} {t.enableNotifications} {t.enableNotificationsDescription} ) }