import React from 'react';
import { Edit, SimpleForm, TextInput, SelectInput, required } from 'react-admin';

export const UserEdit = () => (
    <Edit>
        <SimpleForm>
            <TextInput source="email" disabled />
            <SelectInput source="status" choices={[
                { id: 'active', name: 'Active' },
                { id: 'blocked', name: 'Blocked' },
                { id: 'deleted', name: 'Deleted' },
            ]} validate={required()} />
        </SimpleForm>
    </Edit>
);