added treeview dependency

This commit is contained in:
Xetera
2019-07-27 15:52:25 -04:00
committed by Jean-Philippe Sirois
parent 80f91b5dc1
commit 378bb7d4db
8 changed files with 70 additions and 2 deletions
@@ -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;
`;