import React, {useEffect} from 'react'
import {View, Text} from '@tarojs/components'
import {Space} from '@nutui/nutui-react-taro'
import navTo from "@/utils/common";

const ApplyIndex: React.FC = () => {

  // 初始化当前用户名称
  useEffect(() => {
  }, [])

  return (
    <View className="p-4">
      <View
        className={`bg-white rounded-lg p-4 mb-3 shadow-sm`}
        onClick={() => navTo(`/clinic/clinicPatientUser/add`)}
      >
        <View className="flex items-center mb-3">
          <View className="flex-1">
            <View className="flex items-center justify-between mb-1">
              <View className="flex items-center">
                <Space>
                  <Text className="font-semibold text-gray-800 mr-2">我是患者</Text>
                </Space>
              </View>
            </View>
            <Text className="text-xs text-gray-500">
              立即注册
            </Text>
          </View>
        </View>
      </View>
      <View
        className={`bg-white rounded-lg p-4 mb-3 shadow-sm`}
        onClick={() => navTo(`/clinic/clinicDoctorUser/add`)}
      >
        <View className="flex items-center mb-3">
          <View className="flex-1">
            <View className="flex items-center justify-between mb-1">
              <View className="flex items-center">
                <Space>
                  <Text className="font-semibold text-gray-800 mr-2">我是医师</Text>
                </Space>
              </View>
            </View>
            <Text className="text-xs text-gray-500">
              立即加入医师团队
            </Text>
          </View>
        </View>
      </View>
    </View>
  )
}

export default ApplyIndex;
