import "react";
import { jsx } from "../../../node_modules/.pnpm/@emotion_react@11.10.4_q4mq7tnhdumujvomvw24zx33y4/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js";
import DatePicker from "../../../node_modules/.pnpm/@arco-design_web-react@2.40.1_biqbaboplfbrettd7655fr4n2y/node_modules/@arco-design/web-react/es/DatePicker/index.js";
const Date = ({
  control,
  name,
  required,
  type,
  ...props
}) => {
  const restProps = {
    placeholder: `\u8BF7\u9009\u62E9${props.label || props.title}`,
    format: "YYYY-MM-DD",
    showTime: props.defaultValue,
    ...type === "day" ? {
      format: "YYYY-MM-DD"
    } : {},
    ...type === "datetime" ? {
      showTime: true,
      format: "YYYY-MM-DD HH:mm:ss"
    } : {},
    ...props
  };
  return /* @__PURE__ */ jsx(DatePicker, {
    ...restProps
  });
};
export {
  Date
};
//# sourceMappingURL=Date.js.map
