import { useState, useEffect } from 'react' import { Col } from 'web/components/layout/col' import { Spacer } from 'web/components/layout/spacer' import { CustomAnalytics, FirebaseAnalytics } from '../stats' import { getStats } from 'web/lib/firebase/stats' import { Stats } from 'common/stats' export default function AnalyticsEmbed() { const [stats, setStats] = useState(undefined) useEffect(() => { getStats().then(setStats) }, []) if (stats == null) { return <> } return ( ) }