dappconnect-sdks/examples/with-vite/src/app.tsx

18 lines
396 B
TypeScript
Raw Normal View History

import { Community } from '@status-im/react'
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'
export const App = () => {
return (
<Community publicKey={publicKey} environment={environment} theme="light" />
)
}