manifold/web/pages/embed/analytics.tsx
Austin Chen 2ac7caaf24
Rename /analytics to /stats to work around adblockers (#437)
* Rename /analytics to /stats to work around adblockers

* Fix prettier lint
2022-06-07 08:37:23 -07:00

21 lines
544 B
TypeScript

import { Col } from 'web/components/layout/col'
import { Spacer } from 'web/components/layout/spacer'
import { fromPropz } from 'web/hooks/use-propz'
import Analytics, {
CustomAnalytics,
FirebaseAnalytics,
getStaticPropz,
} from '../stats'
export const getStaticProps = fromPropz(getStaticPropz)
export default function AnalyticsEmbed(props: Parameters<typeof Analytics>[0]) {
return (
<Col className="w-full bg-white px-2">
<CustomAnalytics {...props} />
<Spacer h={8} />
<FirebaseAnalytics />
</Col>
)
}