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