feat: translate tier list

This commit is contained in:
tresabhi committed 2025-01-07 13:09:05 -06:00
1 parent 6b2dda0f9d
commit 571ae81306
7 files changed
+40 -13

No files matched your search

@@ -1,5 +1,6 @@
import { Button, type ButtonProps, Tooltip } from '@radix-ui/themes';
import { useState } from 'react';
import { useLocale } from '../hooks/useLocale';
interface CopyButtonProps extends ButtonProps {
copy: () => string | undefined;
@@ -7,9 +8,13 @@ interface CopyButtonProps extends ButtonProps {
export function CopyButton({ copy, ...props }: CopyButtonProps) {
const [tooltipOpen, setTooltipOpen] = useState(false);
const { strings } = useLocale();
return (
<Tooltip open={tooltipOpen} content="Copied!">
<Tooltip
open={tooltipOpen}
content={strings.website.common.copy_button.copied}
>
<Button
{...props}
onClick={() => {