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