UNPKG

@trap_stevo/legendarybuilderproreact-ui

Version:

The legendary UI & utility API that makes your application a legendary application. ~ Created by Steven Compton

18 lines (15 loc) 445 B
/* Created by Hassan Steven Compton. March 7, 2024. */ import React, { useState } from 'react'; import { useNavigate } from 'react-router-dom'; var HUDNavigationComponent = function HUDNavigationComponent(_ref) { var children = _ref.children; var navigate = useNavigate(); var navigateTo = function navigateTo(path) { navigate(path); }; return children(navigateTo); }; export default HUDNavigationComponent;