import type { BaseFormProps } from '../../components/base'
import { memo } from 'react'
import { BaseForm } from '../../components/base'

const AuthForm = ({
  formSchemas = [],
  defaultValues,
  ref,
  formFromProps,
  ...rest
}: BaseFormProps) => {
  return (
    <BaseForm
      ref={ref}
      formSchemas={formSchemas}
      defaultValues={defaultValues}
      formClassName="space-y-4"
      labelClassName="h-6 flex items-center mb-1 system-sm-medium text-text-secondary"
      formFromProps={formFromProps}
      {...rest}
    />
  )
}

export default memo(AuthForm)
