25 lines
524 B
TypeScript
25 lines
524 B
TypeScript
/* eslint-disable react/function-component-definition */
|
|
import { cn } from "@/lib/utils";
|
|
import { ReactNode, forwardRef } from "react";
|
|
|
|
type Props = {
|
|
children: ReactNode;
|
|
className?: string;
|
|
};
|
|
|
|
const Container = forwardRef<HTMLDivElement, Props>(
|
|
({ children, className }, ref) => {
|
|
return (
|
|
<div
|
|
ref={ref}
|
|
className={cn("mx-auto md:px-0 px-4 container", className)}
|
|
>
|
|
{children}
|
|
</div>
|
|
);
|
|
},
|
|
);
|
|
|
|
Container.displayName = "Container";
|
|
|
|
export default Container;
|