Spaces:
Configuration error

README / frontend /src /components /shared /buttons /settings-button.tsx
gauravanu001's picture
upload
2d63f96 verified
Raw History Blame Contribute Delete
612 Bytes
import { useTranslation } from "react-i18next";
import SettingsIcon from "#/icons/settings.svg?react";
import { TooltipButton } from "./tooltip-button";
import { I18nKey } from "#/i18n/declaration";
interface SettingsButtonProps {
onClick?: () => void;
}
export function SettingsButton({ onClick }: SettingsButtonProps) {
const { t } = useTranslation();
return (
<TooltipButton
testId="settings-button"
tooltip={t(I18nKey.SETTINGS$TITLE)}
ariaLabel={t(I18nKey.SETTINGS$TITLE)}
onClick={onClick}
>
<SettingsIcon width={28} height={28} />
</TooltipButton>
);
}