"use client" import * as React from "react" import { getLocalTimeZone, type CalendarDate } from "@internationalized/date" import { ChevronDownIcon } from "lucide-react" import { I18nProvider } from "react-aria-components" import { useTranslation, type Translations, } from "@/components/language-selector" import { Button } from "@/styles/aria-nova/ui-rtl/button" import { Calendar } from "@/styles/aria-nova/ui-rtl/calendar" import { Popover, PopoverTrigger } from "@/styles/aria-nova/ui-rtl/popover" const translations: Translations = { en: { dir: "ltr", values: { placeholder: "Pick a date", }, }, ar: { dir: "rtl", values: { placeholder: "اختر تاريخًا", }, }, he: { dir: "rtl", values: { placeholder: "בחר תאריך", }, }, } export function DatePickerRtl() { const { dir, t, language } = useTranslation(translations, "ar") const [date, setDate] = React.useState(null) return ( ) }