chore: move type
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
export type WindowWithDataLayer = Window & {
|
||||
datalayer: { [key: string]: any }
|
||||
}
|
||||
|
||||
export type TrackingProps = {
|
||||
pageData: {
|
||||
pageId: string
|
||||
|
||||
Reference in New Issue
Block a user