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