manifold/web/pages/embed/analytics.tsx

22 lines
598 B
TypeScript
Raw Normal View History

import { FirstArgument } from 'common/util/types'
import { Col } from 'web/components/layout/col'
import { Spacer } from 'web/components/layout/spacer'
import { fromPropz } from 'web/hooks/use-propz'
import Analytics, {
2022-03-20 22:21:28 +00:00
CustomAnalytics,
FirebaseAnalytics,
getStaticPropz,
} from '../analytics'
export const getStaticProps = fromPropz(getStaticPropz)
export default function AnalyticsEmbed(props: FirstArgument<typeof Analytics>) {
2022-03-20 22:21:28 +00:00
return (
<Col className="w-full bg-white px-2">
2022-03-20 22:21:28 +00:00
<CustomAnalytics {...props} />
<Spacer h={8} />
<FirebaseAnalytics />
</Col>
)
}