2022-06-28 14:40:39 +00:00
|
|
|
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-08-01 17:10:54 +00:00
|
|
|
const environment = process.env.ENVIRONMENT as 'production' | 'test'
|
2022-07-19 08:19:46 +00:00
|
|
|
|
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
|
|
|
}
|