mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
feat: translate tier list
This commit is contained in:
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={() => {
|
||||
|
||||
Reference in new issue
Block a user