File size: 525 Bytes
d092f57
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
import { FC } from "react"
import ControlButton from "../input/ControlButton"
import IconDelete from "../icon/IconDelete"

interface Props {
  tooltip: string
  onClick: () => void
  className?: string
}

const DeleteButton: FC<Props> = ({ tooltip, onClick }) => {
  return (
    <ControlButton
      className={"transition-colors text-red-600 hover:text-red-500"}
      onClick={onClick}
      interaction={() => {}}
      tooltip={tooltip}
    >
      <IconDelete />
    </ControlButton>
  )
}

export default DeleteButton