import React, { useState } from 'react'; import { Button, TextField, Typography, Box } from '@mui/material'; import LoginInput from '../login-input'; type InputType = 'mobile' | 'password' | 'email' | 'aadhaar'; interface LoginProps { title?: string; onLogin: (value: string | number) => void; jwksUrl?: string; nextRoute?: string; type: InputType; value: string | number; onChange: (event: React.ChangeEvent) => void; placeholder: string; } const LoginComponent: React.FC = ({ title, onLogin, jwksUrl, nextRoute, type, value, onChange, placeholder, }) => { const handleLogin = () => { onLogin(value); }; return ( {title && ( {title} )} ); }; export default LoginComponent;