AntDesign Menu Condition for user login

I have old code condition for user login in AntDesign Menu

Terminal says version of menu Item is old. Here is some code

 { <Menu onClick={handleClick} selectedKeys={[current]} mode="horizontal">
        {!user && (
          <Menu.Item key="register" icon={<UserAddOutlined />}>
            <Link to="/register">Đăng kí</Link>
          </Menu.Item>
        )}
        {!user && (
          <Menu.Item key="login" icon={<UserOutlined />}>
            <Link to="/login">Đăng nhập</Link>
          </Menu.Item>
        )}
      </Menu> }

I want to know how to write it in the newest version. Can anyone give me some information?