index.tsx 576 B

12345678910111213141516171819202122232425
  1. import { memo } from 'react'
  2. import { BaseForm } from '../../components/base'
  3. import type { BaseFormProps } from '../../components/base'
  4. const AuthForm = ({
  5. formSchemas = [],
  6. defaultValues,
  7. ref,
  8. formFromProps,
  9. ...rest
  10. }: BaseFormProps) => {
  11. return (
  12. <BaseForm
  13. ref={ref}
  14. formSchemas={formSchemas}
  15. defaultValues={defaultValues}
  16. formClassName='space-y-4'
  17. labelClassName='h-6 flex items-center mb-1 system-sm-medium text-text-secondary'
  18. formFromProps={formFromProps}
  19. {...rest}
  20. />
  21. )
  22. }
  23. export default memo(AuthForm)