File size: 639 Bytes
b59aa07
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { IoIosRefresh } from "react-icons/io";
import { useTranslation } from "react-i18next";
import { IconButton } from "./icon-button";
import { I18nKey } from "#/i18n/declaration";

interface RefreshIconButtonProps {
  onClick: () => void;
}

export function RefreshIconButton({ onClick }: RefreshIconButtonProps) {
  const { t } = useTranslation();

  return (
    <IconButton
      icon={
        <IoIosRefresh
          size={16}
          className="text-neutral-400 hover:text-neutral-100 transition"
        />
      }
      testId="refresh"
      ariaLabel={t("BUTTON$REFRESH" as I18nKey)}
      onClick={onClick}
    />
  );
}