bb-plane-fork/apps/web/ce/components/workspace/upgrade-badge.tsx
sriram veeraghanta 02d0ee3e0f
chore: add copyright (#8584)
* feat: adding new copyright info on all files

* chore: adding CI
2026-01-27 13:54:22 +05:30

36 lines
830 B
TypeScript

/**
* Copyright (c) 2023-present Plane Software, Inc. and contributors
* SPDX-License-Identifier: AGPL-3.0-only
* See the LICENSE file for details.
*/
import type { FC } from "react";
// helpers
import { useTranslation } from "@plane/i18n";
import { cn } from "@plane/utils";
type TUpgradeBadge = {
className?: string;
size?: "sm" | "md";
};
export function UpgradeBadge(props: TUpgradeBadge) {
const { className, size = "sm" } = props;
const { t } = useTranslation();
return (
<div
className={cn(
"w-fit cursor-pointer rounded-2xl text-accent-secondary bg-accent-primary/20 text-center font-medium outline-none",
{
"text-13 px-3": size === "md",
"text-11 px-2": size === "sm",
},
className
)}
>
{t("sidebar.pro")}
</div>
);
}