"use client";

import ActiveChecker from "@/components/ActiveChecker";
import CartChecker from "@/components/CartChecker";
import RestaurantHeadManager from "@/components/RestaurantHeadManager";
import RestaurantNotFoundGuard from "@/components/RestaurantNotFoundGuard";
import PreferenceWrapper from "@/components/wrapper/PreferenceWrapper";

type Props = {
  children: React.ReactNode;
};

export default function RestaurantLayoutClient({ children }: Props) {
  return (
    <>
      <RestaurantHeadManager />
      <RestaurantNotFoundGuard>
        <PreferenceWrapper>{children}</PreferenceWrapper>
      </RestaurantNotFoundGuard>
      <CartChecker />
      <ActiveChecker />
    </>
  );
}
