2022-05-09 13:04:36 +00:00
|
|
|
import { Col } from 'web/components/layout/col'
|
|
|
|
import { Spacer } from 'web/components/layout/spacer'
|
|
|
|
import { fromPropz } from 'web/hooks/use-propz'
|
2022-03-21 22:42:06 +00:00
|
|
|
import Analytics, {
|
2022-03-20 22:21:28 +00:00
|
|
|
CustomAnalytics,
|
|
|
|
FirebaseAnalytics,
|
|
|
|
getStaticPropz,
|
|
|
|
} from '../analytics'
|
|
|
|
|
|
|
|
export const getStaticProps = fromPropz(getStaticPropz)
|
|
|
|
|
2022-06-04 20:30:54 +00:00
|
|
|
export default function AnalyticsEmbed(props: Parameters<typeof Analytics>[0]) {
|
2022-03-20 22:21:28 +00:00
|
|
|
return (
|
2022-05-09 13:04:36 +00:00
|
|
|
<Col className="w-full bg-white px-2">
|
2022-03-20 22:21:28 +00:00
|
|
|
<CustomAnalytics {...props} />
|
|
|
|
<Spacer h={8} />
|
|
|
|
<FirebaseAnalytics />
|
|
|
|
</Col>
|
|
|
|
)
|
|
|
|
}
|