dappconnect-sdks/examples/community/src/app.tsx

20 lines
398 B
TypeScript
Raw Normal View History

import React from 'react'
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)'
)
}
const environment = process.env.ENVIRONMENT
export const App = () => {
return (
<Community publicKey={publicKey} environment={environment} theme="light" />
)
}