mirror of
https://github.com/StepanovPlaton/torrent_frontend.git
synced 2026-04-03 12:20:48 +04:00
16 lines
276 B
TypeScript
16 lines
276 B
TypeScript
export const Section = ({
|
|
name,
|
|
children,
|
|
}: {
|
|
name: string;
|
|
children: React.ReactNode;
|
|
}) => {
|
|
return (
|
|
// open section onClick
|
|
<section className="w-full m-5 mt-8 cursor-pointer">
|
|
<h2 className="text-4xl">{name}</h2>
|
|
<div>{children}</div>
|
|
</section>
|
|
);
|
|
};
|