import { View, Text } from '@tarojs/components';
import Taro from '@tarojs/taro';
import PageShell from '@/components/ui/PageShell';
import './index.scss';

export default function FrozenPage() {
  return (
    <PageShell scroll={false}>
      <View className="frozen-page">
        <Text className="frozen-page-icon">🚧</Text>
        <Text className="frozen-page-title">功能即将上线</Text>
        <Text className="frozen-page-desc">我们正在努力准备中，敬请期待</Text>
        <View
          className="frozen-page-btn"
          onClick={() => Taro.navigateBack({ delta: 1 }).catch(() => Taro.switchTab({ url: '/pages/index/index' }))}
        >
          <Text className="frozen-page-btn-text">返回</Text>
        </View>
      </View>
    </PageShell>
  );
}
