| | |
| | | import ReleaseRoute from '../components/release-route'; |
| | | import ReleaseBeBeing from '../components/release-be-being'; |
| | | import CallingCar from '../components/calling-car'; |
| | | import { formatDurationDisplay } from '../../../../utils/Robotaxi-public-method'; |
| | | import { formatRemainingDurationDisplay } from '../../../utils/format'; |
| | | |
| | | type Deps = { |
| | | /** 是否安卓 */ |
| | |
| | | evaluateSubmitVersion: number; |
| | | /** 评价关闭版本 */ |
| | | evaluateCloseVersion: number; |
| | | /** 打开公告 */ |
| | | handleOpenAnnouncementsPopup: () => void; |
| | | /** 打开结束弹窗 */ |
| | | handleOpenOverRoutePopup: () => void; |
| | | /** 支付 */ |
| | |
| | | */ |
| | | export default function useViewDelegates(deps: Deps) { |
| | | /** 时长文案 */ |
| | | const durationDisplay = formatDurationDisplay(deps.routeDuration); |
| | | const durationDisplay = formatRemainingDurationDisplay(deps.routeDuration); |
| | | |
| | | /** |
| | | * 渲染等待态气泡。 |
| | |
| | | priceUpdateVersion={deps.priceUpdateVersion} |
| | | evaluateSubmitVersion={deps.evaluateSubmitVersion} |
| | | evaluateCloseVersion={deps.evaluateCloseVersion} |
| | | handleOpenAnnouncementsPopup={deps.handleOpenAnnouncementsPopup} |
| | | handleOpenOverRoutePopup={deps.handleOpenOverRoutePopup} |
| | | handlePay={deps.handlePay} |
| | | handleOpenEvaluatePopup={deps.handleOpenEvaluatePopup} |