import React from "react";
import { Outlet } from "react-router-dom";
import Sidebar from "./Sidebar";

function Layout(props) {
  return (
    <div className="min-h-screen bg-slate-50 text-blue-900 md:flex">
      <Sidebar user={props.user} />
      <main className="flex-1 p-4 md:p-6">
        <Outlet />
      </main>
    </div>
  );
}

export default Layout;
