17 lines
380 B
TypeScript
17 lines
380 B
TypeScript
|
import { sidebarVisibilityOptions } from "./useSidebarVisibility";
|
||
|
|
||
|
interface props {
|
||
|
sidebarVisibility: sidebarVisibilityOptions;
|
||
|
}
|
||
|
|
||
|
function SidebarHeader({ sidebarVisibility }: props) {
|
||
|
if (sidebarVisibility == "full") {
|
||
|
return <h1>hi there</h1>;
|
||
|
} else if (sidebarVisibility == "small") {
|
||
|
return <h1>hi</h1>;
|
||
|
}
|
||
|
return <></>;
|
||
|
}
|
||
|
|
||
|
export default SidebarHeader;
|