/** * @typedef {import("@fortawesome/fontawesome-svg-core").IconDefinition} IconDefinition */ /** * A component to display a navigation button * @param {object} props component's customisable properties * @param {IconDefinition} props.icon a FontAwesome svg icon * @param {string} [props.to] a route to navigate to * @param {() => void} [props.onClick] a callback to call on click * @returns {React.ReactNode} content of the NavButton */