mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
26 lines
527 B
TypeScript
26 lines
527 B
TypeScript
import React, { ReactElement } from 'react'
|
|
import libMock from './lib'
|
|
|
|
const reactMock = {
|
|
OceanProvider: function Component({
|
|
children
|
|
}: {
|
|
children: ReactElement
|
|
}): ReactElement {
|
|
return <div>{children}</div>
|
|
},
|
|
useOcean: () => {
|
|
return {
|
|
ocean: libMock.ocean,
|
|
config: {},
|
|
web3: null as any,
|
|
web3Modal: null as any,
|
|
web3Provider: null as any,
|
|
accountId: '0x0000000011111111aaaaaaaabbbbbbbb22222222',
|
|
balance: '0.12'
|
|
}
|
|
}
|
|
}
|
|
|
|
export default reactMock
|