oak-pay-business/src/components/withdraw/detail/web.pc.tsx

43 lines
1.4 KiB
TypeScript

import React from 'react';
import { EntityDict } from "../../../oak-app-domain";
import { RowWithActions, WebComponentProps } from "oak-frontend-base";
import WithdrawDetail from '../dry/Detail.pc';
import Styles from './web.pc.module.less';
export default function render(props: WebComponentProps<EntityDict, 'withdraw', false, {
createAtStr: string;
withdrawMethod?: 'refund' | 'channel';
refundData?: ({
lossExp: string;
channel: string;
priceYuan: string;
lossYuan: string;
finalYuan: string;
iState: EntityDict['refund']['OpSchema']['iState'];
iStateColor: string;
})[];
withdrawExactPrice: string;
step: 1 | 2;
iState?: EntityDict['withdraw']['OpSchema']['iState'];
}>) {
const { withdrawExactPrice, withdrawMethod, refundData, createAtStr, step, iState } = props.data;
const { t } = props.methods;
if (refundData) {
return (
<div className={Styles.container}>
<WithdrawDetail
withdrawExactPrice={withdrawExactPrice}
withdrawMethod={withdrawMethod}
refundData={refundData}
t={t}
step={step}
createAt={createAtStr}
iState={iState}
/>
</div>
);
}
return null;
}