import { TChildren } from "@/types/types";
import React from "react";
import { cn } from "@/lib/utils";
import { PAGE_SHELL_CLASS } from "@/constants/pageLayout";

function Container({
  children,
  className,
  shell = true,
}: TChildren & { className?: string; shell?: boolean }) {
  return (
    <div
      className={cn(shell ? PAGE_SHELL_CLASS : "container mx-auto", className)}
    >
      {children}
    </div>
  );
}

export default Container;
