import React from 'react'
import { List, MkForm, TableTemplate, InfoPage } from '@mokkon/reactjs'
import '@mokkon/reactjs/dist/index.css'
import { Grid, Typography } from '@material-ui/core'
import EditIcon from '@material-ui/icons/Edit';
import DeleteIcon from '@material-ui/icons/Delete';
import SaveIcon from '@material-ui/icons/Save';
import CancelIcon from '@material-ui/icons/Cancel';
import ResponsiveDrawer from './components/ResponsiveDrawer';
const App = () => {
const pediatricians = [
'Michael Lopez',
'Sally Tran',
'Brian Lu',
'Troy Sakulbulwanthana',
'Lisa Wellington',
]
const psychiatrists = [
'Miguel Rodriduez',
'Cassady Campbell',
'Mike Torrence',
]
const fields = [
{ type: 'text_string', label: 'Name', field_name: 'name' },
{ type: 'text_multiline', label: 'Address', field_name: 'address' },
{ type: 'text_number', label: 'Latitude', field_name: 'latitude' },
{ type: 'text_number', label: 'Longitude', field_name: 'longitude' },
{ type: 'text_number', label: 'Max Variance', field_name: 'max_variance' },
{ type: 'text_number', label: 'Min Variance', field_name: 'min_variance' },
{
type: 'dropdown', label: 'Customer Name', field_name: 'customer_name', option_label_field: "name", options: [
{ name: 'Name1' }, { name: 'Name2' }, { name: 'Name3' }, { name: 'Name4' }
]
},
// { type: 'checkbox', label: 'Customer Name', field_name: 'customer_name', checkboxList: [{'label': },{}] },
];
const data = {
delete_time: 0,
name: "Vendor 13",
address: "address",
update_time: 1610341578878,
updated_by: "Nine Nine",
updated_by_id: "kShMtHkcwTNjwm-lfzSBvAzdSo1J8dIpAz6_Ct85HPg",
// status: 'joined'
}
const headCells = [
{ id: 'id', numeric: true, disablePadding: false, label: 'No.' },
{ id: 'name', numeric: true, disablePadding: false, label: 'Name' },
];
const handleUpdate = (data) => {
console.log('update data :', data);
}
const handleDelete = (e, data) => {
console.log('delete data :', data);
}
const handleSave = (e, data) => {
console.log('save data :', data);
}
const handleCancel = (e, data) => {
console.log('cancel data :', data);
}
const handleOnActions = (data) => {
console.log('handleOnActions :', data);
}
var actions = [
{ "label": "edit", "action_type": "edit", "icon":