import { Button, Form, Input, Tabs } from 'antd'; import type { LoginPageLogic, LoginTab } from '../LoginPageLogic'; export default function LoginFormCard({ logic }: { logic: LoginPageLogic }) { const { tab, setTab, loading, onLogin, onRegister } = logic; const [loginForm] = Form.useForm(); const [registerForm] = Form.useForm(); const handleRegister = async (values: any) => { const result = await onRegister(values); if (result) { loginForm.setFieldsValue({ phone: result.phone, password: result.password, }); } }; return (