Skip to content

Commit

Permalink
feat: add max-width-wrapper component
Browse files Browse the repository at this point in the history
  • Loading branch information
mickasmt committed May 29, 2024
1 parent 5f3c609 commit dba48b7
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions components/shared/max-width-wrapper.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { ReactNode } from "react";

import { cn } from "@/lib/utils";

export default function MaxWidthWrapper({
className,
children,
large = false,
}: {
className?: string;
large?: boolean;
children: ReactNode;
}) {
return (
<div className={cn("container", !large ? "max-w-6xl" : null, className)}>
{children}
</div>
);
}

0 comments on commit dba48b7

Please sign in to comment.