mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
* #1952 Fix incorrect localization key for sign-up failure message * feat: add typeScript support to enforce valid translation keys * feat: add typeScript support to enforce valid translation keys * fix lint errors * fix lint error
21 lines
444 B
TypeScript
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;
|