mirror of
https://github.com/ershisan99/DevToysWeb.git
synced 2025-12-16 12:32:48 +00:00
17 lines
352 B
TypeScript
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>
|
|
);
|
|
}
|