mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-04 09:15:58 +02:00
17 lines
361 B
TypeScript
17 lines
361 B
TypeScript
import React from "react";
|
|
import { SidebarTitle } from "./style";
|
|
|
|
export interface SidebarSectionProps {
|
|
readonly title: string;
|
|
}
|
|
|
|
const SidebarSection = ({ title, children }: React.PropsWithChildren<SidebarSectionProps>) => {
|
|
return (
|
|
<div>
|
|
<SidebarTitle>{title}</SidebarTitle>
|
|
{children}
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default SidebarSection; |