-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathContractBox.tsx
More file actions
33 lines (31 loc) · 972 Bytes
/
ContractBox.tsx
File metadata and controls
33 lines (31 loc) · 972 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import React from 'react';
import Card from '../../../components/Cards/Card';
import ContractBoxBase from '../ContractBoxBase';
import styles from './ContractBox.styles';
import { View } from 'react-native';
import { ContractBoxProps } from './ContractBox.types';
import { CONTRACT_BOX_TEST_ID } from './ContractBox.constants';
const ContractBox = ({
contractAddress,
contractPetName,
contractLocalImage,
onExportAddress,
onCopyAddress,
onContractPress,
hasBlockExplorer,
}: ContractBoxProps) => (
<View testID={CONTRACT_BOX_TEST_ID}>
<Card style={styles.container}>
<ContractBoxBase
contractAddress={contractAddress}
contractPetName={contractPetName}
contractLocalImage={contractLocalImage}
onExportAddress={onExportAddress}
onCopyAddress={onCopyAddress}
onContractPress={onContractPress}
hasBlockExplorer={hasBlockExplorer}
/>
</Card>
</View>
);
export default ContractBox;