import { ReactNode } from 'react'
import Taro from '@tarojs/taro'
import { Button, Text, View } from '@tarojs/components'
import './TiangongUI.scss'
export function TiangongHeader({ title, onBack }: { title: string; onBack?: () => void }) {
const top = process.env.TARO_ENV === 'weapp' ? Taro.getSystemInfoSync().statusBarHeight || 0 : 0
return
{onBack && }{title}
}
export function TiangongModal({ title, onClose, children, variant = '' }: { title: string; onClose: () => void; children: ReactNode; variant?: string }) {
return e.stopPropagation()}>
{children}
}
export function TiangongMockNote() { return Mock 原型演示 · 不扣费、不连接设备 · 刷新重置 }