movie-web/src/components/layout/ThinContainer.tsx

19 lines
347 B
TypeScript
Raw Normal View History

2022-02-10 23:45:17 +01:00
import { ReactNode } from "react";
interface ThinContainerProps {
2022-02-13 18:49:03 +01:00
classNames?: string;
children?: ReactNode;
2022-02-10 23:45:17 +01:00
}
export function ThinContainer(props: ThinContainerProps) {
2022-02-13 18:49:03 +01:00
return (
<div
2023-09-06 20:43:45 +02:00
className={`mx-auto w-[600px] max-w-full px-8 sm:px-0 ${
2023-01-07 21:36:18 +01:00
props.classNames || ""
}`}
2022-02-13 18:49:03 +01:00
>
{props.children}
</div>
);
2022-02-10 23:45:17 +01:00
}