import VisibilityOffOutlined from '@mui/icons-material/VisibilityOffOutlined'
import VisibilityOutlined from '@mui/icons-material/VisibilityOutlined'
import {
Box,
Button,
FormControl,
FormHelperText,
FormLabel,
IconButton,
Input,
Link,
Typography,
} from '@mui/joy'
import { useState } from 'react'
import { authButtonSx, authInputSx } from './authStyles'
const labelSx = { fontSize: '0.875rem', fontWeight: 600, mb: 0.75 }
export const AuthField = ({ label, error, helper, children, ...formProps }) => (
{label}
{children}
{(error || helper) && (
{error || helper}
)}
)
export const AuthTextField = ({ label, error, helper, sx, ...inputProps }) => (
)
export const AuthPasswordField = ({
label = 'Password',
error,
helper,
sx,
...inputProps
}) => {
const [visible, setVisible] = useState(false)
return (
setVisible(v => !v)}
sx={{ borderRadius: '8px' }}
>
{visible ? (
) : (
)}
}
{...inputProps}
/>
)
}
export const AuthSubmitButton = ({ children, sx, ...props }) => (
)
export const SocialButton = ({ icon, children, sx, ...props }) => (
)
export const AuthDivider = ({ children = 'or' }) => (
{children}
)
export const LegalLinks = () => (
Privacy Policy
{' ยท '}
Terms of Use
)