import React, { useState } from 'react'; import { useDispatch } from 'react-redux'; import Input from '../components/Input'; import { ActiveState } from '../models/misc'; import WrapperModal from './WrapperModal'; type JWTModalProps = { modalState: ActiveState; handleTokenSubmit: (enteredToken: string) => void; }; export default function JWTModal({ modalState, handleTokenSubmit, }: JWTModalProps) { const [jwtToken, setJwtToken] = useState(''); if (modalState !== 'ACTIVE') return null; return ( {}}>
Add JWT Token
setJwtToken(e.target.value)} borderVariant="thin" />
); }