[WEB-3872]chore: header switcher enhancements (#6935)

* * chore: alignment and size for header
* fix: switcher close on click

* chore: moved acces icon component to components
This commit is contained in:
Vamsi Krishna 2025-04-17 17:15:53 +05:30 committed by GitHub
parent fa87ff14b7
commit 55eea1a8b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 48 additions and 77 deletions

View file

@ -7,3 +7,4 @@ export * from "./pro-icon";
export * from "./count-chip";
export * from "./activity";
export * from "./switcher-label";
export * from "./page-access-icon";

View file

@ -0,0 +1,15 @@
import { ArchiveIcon, Earth, Lock } from "lucide-react";
import { EPageAccess } from "@plane/constants";
import { TPage } from "@plane/types";
export const PageAccessIcon = (page: TPage) => (
<div>
{page.archived_at ? (
<ArchiveIcon className="h-2.5 w-2.5 text-custom-text-300" />
) : page.access === EPageAccess.PUBLIC ? (
<Earth className="h-2.5 w-2.5 text-custom-text-300" />
) : (
<Lock className="h-2.5 w-2.5 text-custom-text-300" />
)}
</div>
);