/** * functions and constants which helps to build * nextjs or react router dom navigation operations * for an entity. */ export const LicensableProductNavigationTools = { edit(uniqueId: string, locale?: string) { return `${locale ? "/" + locale : ""}/licensable-product/edit/${uniqueId}`; }, create(locale?: string) { return `${locale ? "/" + locale : ""}/licensable-product/new`; }, single(uniqueId: string, locale?: string) { return `${locale ? "/" + locale : ""}/licensable-product/${uniqueId}`; }, query(params: any = {}, locale?: string) { return `${locale ? "/" + locale : ""}/licensable-products`; }, /** * Use R series while building router in CRA or nextjs, or react navigation for react Native * Might be useful in Angular as well. **/ Redit: "licensable-product/edit/:uniqueId", Rcreate: "licensable-product/new", Rsingle: "licensable-product/:uniqueId", Rquery: "licensable-products", };