import * as React from 'react'; import { TextField, FormControlLabel, Radio, RadioGroup, Typography } from '@mui/material'; type InputType = 'mobile' | 'password' | 'email' | 'aadhaar'; interface InputProps { type: InputType; value: string | number; onChange: (event: React.ChangeEvent) => void; placeholder: string; } const LoginInput: React.FC = ({ type, value, onChange, placeholder }) => { const getType = () => { switch (type) { case 'mobile': case 'aadhaar': return 'tel'; case 'password': return 'password'; case 'email': return 'email'; default: return 'text'; } }; return ( ); }; export default LoginInput; export const LoginCheckBox = ({ selectedValue, title, onChange, }: { selectedValue: boolean; title: string; onChange: (value: boolean) => void; }) => { return (
{title}: { const newValue = e.target.value === 'true'; onChange(newValue); }} sx={{ display: 'flex', flexDirection: 'row', width: '300px' }} > } label="True" /> } label="False" />
); };