import React from "react"; /** * Route default options. * * @type {Object} */ export const defaultRouteOptions = { path: null, title: "no_title", element: null, }; /** * Route object. * * @param {Object} options route options * @class */ function Route(options) { const { path, title, element } = { ...defaultRouteOptions, ...options }; /** * Get route path. * * @return {string} path */ this.getPath = () => path; /** * Get route title. * * @return {string} title */ this.getTitle = () => title; /** * Get route element. * * @return {Function} element */ this.getElement = () => element ??