mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-01-19 05:45:15 +01:00
40936fe49c
Dont bother on running in android. extract listener from app.js
31 lines
773 B
TypeScript
31 lines
773 B
TypeScript
import React from 'react';
|
|
|
|
interface HandOffComponentProps {
|
|
url?: string;
|
|
title?: string;
|
|
type: (typeof HandOffComponent.activityTypes)[keyof typeof HandOffComponent.activityTypes];
|
|
userInfo?: object;
|
|
}
|
|
|
|
interface HandOffComponentWithActivityTypes extends React.FC<HandOffComponentProps> {
|
|
activityTypes: {
|
|
ReceiveOnchain: string;
|
|
Xpub: string;
|
|
ViewInBlockExplorer: string;
|
|
};
|
|
}
|
|
|
|
const HandOffComponent: HandOffComponentWithActivityTypes = props => {
|
|
return null;
|
|
};
|
|
|
|
const activityTypes = {
|
|
ReceiveOnchain: 'io.bluewallet.bluewallet.receiveonchain',
|
|
Xpub: 'io.bluewallet.bluewallet.xpub',
|
|
ViewInBlockExplorer: 'io.bluewallet.bluewallet.blockexplorer',
|
|
};
|
|
|
|
HandOffComponent.activityTypes = activityTypes;
|
|
|
|
export default HandOffComponent;
|