mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-05 23:43:37 +02:00
added treeview dependency
This commit is contained in:
committed by
Jean-Philippe Sirois
parent
80f91b5dc1
commit
378bb7d4db
@@ -0,0 +1,17 @@
|
||||
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;
|
||||
@@ -0,0 +1,5 @@
|
||||
import styled from "styled-components";
|
||||
|
||||
export const SidebarTitle = styled.h3`
|
||||
text-transform: uppercase;
|
||||
`;
|
||||
Reference in New Issue
Block a user