Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export const Forms = ({ status, killed, account, dispatch }) => {
- if (killed) return <KillForm />;
- return (
- <div>
- {status ? <span /> : <CreateForm dispatch={dispatch} account={account} />}
- {status == "payable" ? (
- <PayForm dispatch={dispatch} account={account} />
- ) : (
- <span />
- )}
- {status == "reclaimable" ? (
- <ReclaimForm dispatch={dispatch} account={account} />
- ) : (
- <span />
- )}
- <KillForm account={account} dispatch={dispatch} />
- </div>
- );
- };
Add Comment
Please, Sign In to add comment