import { useUsersQuery, UsersQuery, Permission } from '../../graphql' import { useFormHandler, InputPropsOptions } from '../form/forms' import { useEffect } from 'react' interface UserInputProps { inputProps: (name: string, options?: InputPropsOptions) => any subtree: string } const UserInput = ({ inputProps, subtree }: UserInputProps) => { console.log('user input', inputProps('name', { subtree })) return (
Error: {error.message}
if (loading) returnLoading...
return ( ) } export default UserAdmin