Files
DevToysWeb/components/page-root-section.tsx
rusconn 2741082c84 refactor!: refine spacings
BREAKING CAHNGE: some spaces changed
2024-03-29 20:47:21 +09:00

17 lines
352 B
TypeScript

import { cn } from "@/lib/style";
type Props = {
className?: string;
children: React.ReactNode;
title: string;
};
export function PageRootSection({ className, children, title }: Props) {
return (
<section className={cn("flex flex-col gap-6", className)}>
<h1 className="text-2xl">{title}</h1>
{children}
</section>
);
}