* refactor: move from next-international to next-intl * refactor: restructure translation package, * chore: change i18n-allay framework to next-intl * fix: add missing bold html tag to translation * fix: format issue * fix: address deepsource issues * fix: remove international-types dependency * fix: lint and typecheck issues * fix: typecheck issue * fix: typecheck issue * fix: issue with translations
20 lines
426 B
TypeScript
20 lines
426 B
TypeScript
"use client";
|
|
|
|
import type { BadgeProps } from "@mantine/core";
|
|
import { Badge } from "@mantine/core";
|
|
|
|
import { useTranslations } from "@homarr/translation/client";
|
|
|
|
interface BetaBadgeProps {
|
|
size: BadgeProps["size"];
|
|
}
|
|
|
|
export const BetaBadge = ({ size }: BetaBadgeProps) => {
|
|
const t = useTranslations();
|
|
return (
|
|
<Badge size={size} color="green" variant="outline">
|
|
{t("common.beta")}
|
|
</Badge>
|
|
);
|
|
};
|