Skip to content
Permalink
Browse files

Add files via upload

  • Loading branch information
tombrewsviews committed Oct 24, 2019
1 parent ffbcb9c commit e8017f78a5595adaf7f93c3fff02053ad88c728e
Showing with 11 additions and 0 deletions.
  1. +11 −0 useHoveredManual.js
@@ -0,0 +1,11 @@
import { useState } from 'react';

export default function useHoveredManual(isDisabled = false) {
let [isHoveredManual, setIsHoveredManual] = useState(false);

return {
isHoveredManual: !isDisabled && isHoveredManual,
onMouseEnter: () => setIsHoveredManual(true),
onMouseLeave: () => setIsHoveredManual(false),
};
}

0 comments on commit e8017f7

Please sign in to comment.
You can’t perform that action at this time.