add filter side bar

This commit is contained in:
WindowsCrashed
2023-08-08 23:23:11 -03:00
parent ebb7966cd1
commit 264d126414
7 changed files with 159 additions and 42 deletions

View File

@@ -1,15 +1,20 @@
import React, { FC, PropsWithChildren } from "react";
interface Props extends PropsWithChildren {
bgColor?: string;
header?: string;
}
export const SideBar: FC<Props> = ({ bgColor, children }) => {
export const SideBar: FC<Props> = ({ header, children }) => {
return (
<div className={`border-gray-500 ${bgColor ?? ""}`}>
<div className="mx-2">
{children}
</div>
<div className={`border-gray-500`}>
{header &&
<>
<h1>{header}</h1>
<hr className="h-1 mt-2"/>
</>}
<div className="mx-2">
{children}
</div>
</div>
)
}