You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
memos/web/src/components/BetaBadge.tsx

21 lines
444 B
TypeScript

import { useTranslate } from "@/utils/i18n";
interface Props {
className?: string;
}
const BetaBadge: React.FC<Props> = (props: Props) => {
const { className } = props;
const t = useTranslate();
return (
<span
className={`mx-1 px-1 leading-5 text-xs border dark:border-zinc-600 rounded-full text-gray-500 dark:text-gray-400 ${className ?? ""}`}
>
{t("common.beta")}
</span>
);
};
export default BetaBadge;