mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
3c2f5d12ed
* chore: add next theme and initial setup * chore: add dark mode colors to layouts * chore: user general setting page theming * chore: dashboard theming * chore: project page theming * chore: workspace setting page theming * chore: my issue page theming * chore: cmdk theming * chore: change hardcode bg and text color to theme * chore: change color name according to the design * style: fix card in the dashboard * style: fix merge conflict design issues * style: add light high contrast and dark high contrast * style: fix cmd k menu color and selection * feat: change theme from cmdk menu * chore: add multiple theme field to custom theme * chore: removed custom theming * fix: build error --------- Co-authored-by: Saheb Giri <iamsahebgiri@gmail.com>
31 lines
904 B
TypeScript
31 lines
904 B
TypeScript
// icons
|
|
import { Bars3Icon } from "@heroicons/react/24/outline";
|
|
|
|
type Props = {
|
|
breadcrumbs?: JSX.Element;
|
|
left?: JSX.Element;
|
|
right?: JSX.Element;
|
|
setToggleSidebar: React.Dispatch<React.SetStateAction<boolean>>;
|
|
};
|
|
|
|
const Header: React.FC<Props> = ({ breadcrumbs, left, right, setToggleSidebar }) => (
|
|
<div className="flex w-full flex-row items-center justify-between gap-y-4 border-b border-brand-base bg-brand-sidebar px-5 py-4 ">
|
|
<div className="flex items-center gap-2">
|
|
<div className="block md:hidden">
|
|
<button
|
|
type="button"
|
|
className="grid h-8 w-8 place-items-center rounded border border-brand-base"
|
|
onClick={() => setToggleSidebar((prevData) => !prevData)}
|
|
>
|
|
<Bars3Icon className="h-5 w-5" />
|
|
</button>
|
|
</div>
|
|
{breadcrumbs}
|
|
{left}
|
|
</div>
|
|
{right}
|
|
</div>
|
|
);
|
|
|
|
export default Header;
|