manifold/web/pages/embed/analytics.tsx

22 lines
613 B
TypeScript
Raw Normal View History

import { FirstArgument } from '../../../common/util/types'
2022-03-20 22:21:28 +00:00
import { Col } from '../../components/layout/col'
import { Spacer } from '../../components/layout/spacer'
import { fromPropz } from '../../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 px-2 bg-white">
<CustomAnalytics {...props} />
<Spacer h={8} />
<FirebaseAnalytics />
</Col>
)
}