manifold/web/pages/embed/analytics.tsx
Marshall Polaris acc9c84e2e
More absolute imports (#156)
* Configure functions module to allow absolute imports

* Convert common imports in functions to be absolute

* Convert common imports in web to be absolute

* Convert lib imports in web to be absolute

* Convert hooks imports in web to be absolute

* Convert components imports in web to be absolute
2022-05-09 09:04:36 -04:00

22 lines
598 B
TypeScript

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, {
CustomAnalytics,
FirebaseAnalytics,
getStaticPropz,
} from '../analytics'
export const getStaticProps = fromPropz(getStaticPropz)
export default function AnalyticsEmbed(props: FirstArgument<typeof Analytics>) {
return (
<Col className="w-full bg-white px-2">
<CustomAnalytics {...props} />
<Spacer h={8} />
<FirebaseAnalytics />
</Col>
)
}