/* eslint-disable react/style-prop-object */ import * as React from 'react'; import { View } from 'react-native'; import { StatusBar } from 'expo-status-bar'; import { Appbar, Menu } from 'react-native-paper'; import { useTranslation } from 'react-i18next'; import { useBoolean, useCreation } from '@umijs/hooks'; import { goBack, navigate } from '../../navigation/RootNavigation'; export default function Header({ title, noBack, bg, hasRight, orderId }) { const { t } = useTranslation(); const { state, setTrue, setFalse } = useBoolean(false); return ( <> {!noBack && } {!noBack && !hasRight && ( } /> )} {hasRight && ( } > { setFalse(); navigate('ApplayCancel', { orderId, }); }} title={t('qu-xiao-ding-dan')} /> )} ); }