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