mirror of
https://github.com/makeplane/plane.git
synced 2025-12-25 16:19:43 +01:00
19 lines
597 B
TypeScript
19 lines
597 B
TypeScript
import { Lock } from "lucide-react";
|
|
import { Tooltip } from "@plane/ui";
|
|
|
|
export const LockedComponent = (props: { toolTipContent?: string }) => {
|
|
const { toolTipContent } = props;
|
|
const lockedComponent = (
|
|
<div className="flex-shrink-0 flex h-7 items-center gap-2 rounded-full bg-custom-background-80 px-3 py-0.5 text-xs font-medium text-custom-text-300">
|
|
<Lock className="h-3 w-3" />
|
|
<span>Locked</span>
|
|
</div>
|
|
);
|
|
|
|
return (
|
|
<>
|
|
{toolTipContent ? <Tooltip tooltipContent={toolTipContent}>{lockedComponent}</Tooltip> : <>{lockedComponent}</>}
|
|
</>
|
|
);
|
|
};
|