2022-06-28 14:40:39 +00:00
|
|
|
import React from 'react'
|
|
|
|
|
|
|
|
import { Community } from '@status-im/react'
|
|
|
|
|
2022-07-01 15:21:08 +00:00
|
|
|
const publicKey = process.env.PUBLIC_KEY
|
|
|
|
|
|
|
|
if (!publicKey) {
|
|
|
|
throw new Error(
|
|
|
|
'Add PUBLIC_KEY to your environment variables (see .env.example)'
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2022-07-19 08:19:46 +00:00
|
|
|
const environment = process.env.ENVIRONMENT
|
|
|
|
|
2022-06-28 14:40:39 +00:00
|
|
|
export const App = () => {
|
2022-07-19 08:19:46 +00:00
|
|
|
return (
|
|
|
|
<Community publicKey={publicKey} environment={environment} theme="light" />
|
|
|
|
)
|
2022-06-28 14:40:39 +00:00
|
|
|
}
|