"use client"; import { useLocale } from "next-intl"; import { Sidebar } from "@/components/layout/sidebar"; import { Topbar } from "@/components/layout/topbar"; import { CafeThemeProvider } from "@/components/theme/cafe-theme-provider"; /** * Classic POS route layout — wraps the terminal in the standard dashboard * chrome (collapsible sidebar + topbar) but keeps the main content area * overflow-hidden so PosScreen can manage its own internal scrolling. */ export default function PosClassicLayout({ children, }: { children: React.ReactNode; }) { const locale = useLocale(); const isRtl = locale !== "en"; const mainColumn = (
{children}
); return (
{isRtl ? ( <> {mainColumn} ) : ( <> {mainColumn} )}
); }