import { useFieldSchema } from "@tachybase/schema";
import { SchemaSettings } from "../../../../application/schema-settings/SchemaSettings.mjs";
import { useColumnSchema } from "../../../../schema-component/antd/table-v2/Table.Column.Decorator.mjs";
import { SchemaSettingsDateFormat } from "../../../../schema-settings/SchemaSettingsDateFormat.mjs";
const datePickerComponentFieldSettings = new SchemaSettings({
    name: 'fieldSettings:component:DatePicker',
    items: [
        {
            name: 'dateDisplayFormat',
            Component: SchemaSettingsDateFormat,
            useComponentProps () {
                const schema = useFieldSchema();
                const { fieldSchema: tableColumnSchema } = useColumnSchema();
                const fieldSchema = tableColumnSchema || schema;
                return {
                    fieldSchema
                };
            }
        }
    ]
});
export { datePickerComponentFieldSettings };
