mirror of
https://github.com/StepanovPlaton/torrent_frontend.git
synced 2026-04-03 20:30:48 +04:00
Add header and themes
This commit is contained in:
15
src/widgets/section/section.tsx
Normal file
15
src/widgets/section/section.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
export const Section = ({
|
||||
name,
|
||||
children,
|
||||
}: {
|
||||
name: string;
|
||||
children: React.ReactNode;
|
||||
}) => {
|
||||
return (
|
||||
// open section onClick
|
||||
<section className="w-full mt-8 cursor-pointer">
|
||||
<h2 className="text-4xl">{name}</h2>
|
||||
<div>{children}</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user