27 lines
485 B
TypeScript
27 lines
485 B
TypeScript
import React, { StrictMode } from 'react'
|
|
import { render } from 'react-dom'
|
|
|
|
import { CommunityChat, lightTheme } from '@status-im/react'
|
|
|
|
const App = () => {
|
|
return (
|
|
<div>
|
|
<CommunityChat
|
|
theme={lightTheme}
|
|
communityKey="<YOUR_COMMUNITY_KEY>"
|
|
config={{
|
|
environment: '<ENVIRONMENT>',
|
|
dappUrl: '<URL>',
|
|
}}
|
|
/>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
render(
|
|
<StrictMode>
|
|
<App />
|
|
</StrictMode>,
|
|
document.getElementById('root')
|
|
)
|