export interface User {
userID: number,
role: string,
name: string,
active: boolean,
phone: string
}
const onUserChange = (user: User, accessor: string, value: string) => {
user[accessor] = value;
return user;
};