Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
37 lines
851 B
Plaintext
37 lines
851 B
Plaintext
'use client';
|
|
|
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
import { getTranslation } from '@payloadcms/translations';
|
|
import React from 'react';
|
|
import { useTranslation } from '../../../../providers/Translation/index.js';
|
|
import { DatePickerField } from '../../../DatePicker/index.js';
|
|
const baseClass = 'condition-value-date';
|
|
export const DateFilter = t0 => {
|
|
const {
|
|
disabled,
|
|
field: t1,
|
|
onChange,
|
|
value
|
|
} = t0;
|
|
const {
|
|
admin
|
|
} = t1;
|
|
const {
|
|
date
|
|
} = admin || {};
|
|
const {
|
|
i18n,
|
|
t
|
|
} = useTranslation();
|
|
return _jsx("div", {
|
|
className: baseClass,
|
|
children: _jsx(DatePickerField, {
|
|
...date,
|
|
onChange,
|
|
placeholder: getTranslation(admin.placeholder, i18n) || t("general:enterAValue"),
|
|
readOnly: disabled,
|
|
value
|
|
})
|
|
});
|
|
};
|
|
//# sourceMappingURL=index.js.map |