Spaces:
Configuration error

File size: 497 Bytes
2d63f96
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { IoIosRefresh } from "react-icons/io";
import { IconButton } from "./icon-button";

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

export function RefreshIconButton({ onClick }: RefreshIconButtonProps) {
  return (
    <IconButton
      icon={
        <IoIosRefresh
          size={16}
          className="text-neutral-400 hover:text-neutral-100 transition"
        />
      }
      testId="refresh"
      ariaLabel="Refresh workspace"
      onClick={onClick}
    />
  );
}