// Libraries // import { // FormControl, // FormControlLabel, // Input, // MenuItem, // Select, // } from "@mui/material"; import { Input, MenuItem, Select } from "@mui/material"; import React, { useState } from "react"; // Components import { // RenderWorkspace, Workspace, // SettingInputTypeDatePicker, // SettingInputTypeRadio, SettingsInputType, // Preview, } from "../../components/index"; import { SettingInputTypeDatePicker } from "./components/Organisms"; // import { // SettingInputTypeDatePicker, // SettingInputTypeRadio, // } from "./components/Organisms"; const initial = [ { id: "oi2urw", sections: [ { id: 74396, type: 1, properties: { label: "City", internalName: "City", description: null, isRequired: false, isDefault: true, icon: "icon-ants-double-three-dots", }, score: 4, isDefaultField: true, defaultFieldId: 1, componentEl: (props) => ( props.onChange({ value: e.target.value, infor: props.infor, }) } style={{ width: "100%", zIndex: 10000 }} > ), }, { id: 74011, type: 1, properties: { label: "Email1", internalName: "Email1", description: null, isRequired: false, isDefault: true, icon: "icon-ants-double-three-dots", }, score: 4, isDisabled: false, isDefaultField: true, defaultFieldId: 3, componentEl: (props) => { console.log("props", props); return ( ); }, }, { id: 79411, type: 1, properties: { label: "Email1", internalName: "Email1", description: null, isRequired: false, isDefault: true, icon: "icon-ants-double-three-dots", }, score: 4, isDisabled: false, isDefaultField: true, defaultFieldId: 3, componentEl: (props) => { console.log("props", props); return ( ); }, }, ], }, { id: "h88f4l", sections: [ { id: 74411, type: 1, properties: { label: "Email1", internalName: "Email1", description: null, isRequired: false, isDefault: true, icon: "icon-ants-double-three-dots", }, score: 4, isDisabled: false, isDefaultField: true, defaultFieldId: 3, componentEl: (props) => { console.log("props", props); return ( ); }, }, { id: 74412, type: 1, properties: { label: "Last name", internalName: "Last name", description: null, isRequired: false, isDefault: true, icon: "icon-ants-double-three-dots", }, score: 4, isDisabled: false, isDefaultField: true, defaultFieldId: 6, componentEl: (props) => ( props.onChange({ value: e.target.value, infor: props.infor, }) } style={{ width: "100%", zIndex: 10000 }} > ), }, ], }, { id: "h88f42O", sections: [ { id: 7498, type: 1, properties: { label: "Email", internalName: "Email", description: null, isRequired: false, isDefault: true, icon: "icon-ants-double-three-dots", }, score: 4, isDisabled: false, isDefaultField: true, defaultFieldId: 3, componentEl: (props) => ( props.onChange({ value: e.target.value, infor: props.infor, }) } style={{ width: "100%", zIndex: 10000 }} > ), }, ], }, { id: "h88f4O3", sections: [ { id: 74984, type: 1, properties: { label: "Email2", internalName: "Email", description: null, isRequired: false, isDefault: true, icon: "icon-ants-double-three-dots", }, score: 4, isDisabled: false, isDefaultField: true, defaultFieldId: 3, componentEl: (props) => ( props.onChange({ value: e.target.value, infor: props.infor, }) } style={{ width: "100%", zIndex: 10000 }} > ), }, ], }, { id: "h88f4O1", sections: [ { id: 7498123, type: 1, properties: { label: "Email1", internalName: "Email", description: null, isRequired: false, isDefault: true, icon: "icon-ants-double-three-dots", }, score: 4, isDisabled: false, isDefaultField: true, defaultFieldId: 3, componentEl: (props) => ( props.onChange({ value: e.target.value, infor: props.infor, }) } style={{ width: "100%", zIndex: 10000 }} > ), }, ], }, ]; const initialDropdown = [ { id: '1', value: 'antsomi', isPreSelect: true, label: 'Antsomi', associates: { brand: '', country: '' } }, { id: '2', value: 'cdp', isPreSelect: false, label: 'CDP' }, { id: '3', value: 'insight', isPreSelect: false, label: 'Insight' }, ]; const options = [ {value: 'brand', label: "Brand"}, {value: 'country', label: "Country"}, ] // const initial = [ // { // id: "1", // value: "", // isPreSelect: false, // label: "Phong1", // }, // { // id: "1", // value: "", // isPreSelect: false, // label: "", // }, // ]; // const initData = [ // { value: "male", label: "", isPreSelect: false }, // { value: "female", label: "FeMale", isPreSelect: true }, // ]; const FormDesignExample = () => { const [moment, setMoment] = useState("2022-10-17T12:01:00+07:00"); const callback = (type, data) => { switch (type) { case "DATA_WORKSPACE_DND": break; case "SETTING_INPUT_TYPE_DATE_PICKER": setMoment(data.momentDateTime); break; default: break; } }; return ( <> {/* {}} /> */} {/* */} {/* */} {/* */}
); }; export default FormDesignExample;