mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-27 17:57:24 -05:00
23 lines
453 B
TypeScript
23 lines
453 B
TypeScript
import React from "react"
|
|
import { IconButton as ChakraIconButton } from "@chakra-ui/core"
|
|
import { IconType } from "react-icons/lib/cjs"
|
|
|
|
interface IconButtonProps {
|
|
icon: IconType
|
|
onClick: () => void
|
|
}
|
|
|
|
const IconButton: React.FC<IconButtonProps> = ({ icon, onClick }) => {
|
|
return (
|
|
<ChakraIconButton
|
|
aria-label=""
|
|
icon={icon}
|
|
variant="ghost"
|
|
onClick={onClick}
|
|
size="lg"
|
|
/>
|
|
)
|
|
}
|
|
|
|
export default IconButton
|