import React from "react"; import { DateTimeField } from "@firecms/ui"; import { useCustomizationController } from "../../../hooks"; export function VirtualTableDateField(props: { name: string; error: Error | undefined; mode?: "date" | "date_time"; internalValue: Date | undefined | null; updateValue: (newValue: (Date | null)) => void; focused: boolean; disabled: boolean; onBlur?: React.FocusEventHandler; }) { const { locale } = useCustomizationController(); const { disabled, error, mode, internalValue, updateValue } = props; return ( updateValue(dateValue ?? null)} size={"medium"} invisible={true} className={"w-full h-full"} inputClassName={"w-full h-full"} mode={mode} locale={locale} /> ); }