"use client";

import ContentstackLivePreview from "@contentstack/live-preview-utils";
import { useEffect } from "react";

export default function InitLivePreview() {
  useEffect(() => {
      if (!ContentstackLivePreview.livePreview) {
        console.log("INIT");
        ContentstackLivePreview.init();
      }
  }, []);

  return null;
}
