add front-urban
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
// React Imports
|
||||
import { useContext } from 'react'
|
||||
|
||||
// Context Imports
|
||||
import VerticalNavContext from '../contexts/verticalNavContext'
|
||||
|
||||
const useVerticalNav = () => {
|
||||
// Hooks
|
||||
const context = useContext(VerticalNavContext)
|
||||
|
||||
if (context === undefined) {
|
||||
throw new Error('VerticalNav Component is required!')
|
||||
}
|
||||
|
||||
return context
|
||||
}
|
||||
|
||||
export default useVerticalNav
|
||||
Reference in New Issue
Block a user