ldc-ovoteam/resources/ts/front/Components/Theme/Container.tsx
2026-04-08 14:05:46 +02:00

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;