import { Modal } from '../Modal/Modal'
import { LoginForm, type LoginFormProps } from './LoginForm'

export interface LoginDialogProps extends LoginFormProps {
  open: boolean
  onClose: () => void
}

export function LoginDialog({ open, onClose, className, ...formProps }: LoginDialogProps) {
  return (
    <Modal open={open} onClose={onClose} size="sm" className={className}>
      <LoginForm {...formProps} />
    </Modal>
  )
}
