()
| 148 | |
| 149 | // Create a hook to use the context |
| 150 | export const useMouseEnter = () => { |
| 151 | const context = useContext(MouseEnterContext); |
| 152 | if (context === undefined) { |
| 153 | throw new Error('useMouseEnter must be used within a MouseEnterProvider'); |
| 154 | } |
| 155 | return context; |
| 156 | }; |