import React, { FC, HTMLAttributes } from 'react'; import Grid from '@material-ui/core/Grid'; import TextField from '@material-ui/core/TextField'; import { JsonEditor } from '../../../atoms/JsonEditor'; import { SelectByImage } from '../../../atoms/SelectByImage'; export interface Props extends HTMLAttributes { dialogState: any; setDialogState: any; options: any; } export const CreateVerifiablePresentationDialogContent: FC = ({ options, dialogState, setDialogState, }) => { const [editor, setEditorValue] = React.useState(''); const [selected, setSelected] = React.useState(options[0]); const handleEditorChange = (value: any) => { setEditorValue(value); setDialogState({ selected: selected, editor: value, }); }; const handleKeySelection = (value: any) => { setDialogState({ selected: value, }); setSelected(value); }; return (
{ setDialogState({ domain: event.target.value, }); }} /> { setDialogState({ challenge: event.target.value, }); }} />
); };