import { Layout, LayoutContent, LayoutHeader, ProtectedRoute } from "@/components";
import { PropsWithChildren } from "react";

export const DealerLayout = ({ children }: PropsWithChildren) => {
  return (
    <ProtectedRoute>
      <Layout className='dealers-layout'>
        <LayoutHeader />
        <LayoutContent>{children}</LayoutContent>
      </Layout>
    </ProtectedRoute>
  );
};
