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