"use client";

import ActiveChecker from "@/components/ActiveChecker";
import AppBackground from "@/components/background/AppBackground";
import CartChecker from "@/components/CartChecker";
import { PatternBackgroundProvider } from "@/components/background/PatternBackgroundProvider";
import PreferenceWrapper from "@/components/wrapper/PreferenceWrapper";

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

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