"use client";

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

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

  return null;
}
