chore: move type

This commit is contained in:
Arvid Norlin
2024-02-14 11:44:22 +01:00
parent c5e20e969a
commit 0973103c0e
2 changed files with 9 additions and 5 deletions

View File

@@ -1,13 +1,13 @@
"use client"
import { TrackingData, TrackingProps } from "@/types/components/tracking"
import {
TrackingData,
TrackingProps,
WindowWithDataLayer,
} from "@/types/components/tracking"
import { usePathname, useSearchParams } from "next/navigation"
import { useEffect } from "react"
type WindowWithDataLayer = Window & {
datalayer: { [key: string]: any }
}
declare const window: WindowWithDataLayer
function createPageObject(trackingData: TrackingData) {

View File

@@ -1,3 +1,7 @@
export type WindowWithDataLayer = Window & {
datalayer: { [key: string]: any }
}
export type TrackingProps = {
pageData: {
pageId: string