export type StaticPage = 'base' | 'overview' | 'live_queries' | 'live_query_new' | 'packs' | 'pack_add' | 'saved_queries' | 'saved_query_new' ; export type DynamicPage = 'live_query_details' | 'pack_details' | 'pack_edit' | 'saved_query_edit' ; export type Page = StaticPage | DynamicPage ; export interface DynamicPagePathValues { [ key ] : string ; } export const PAGE_ROUTING_PATHS = { overview : '/' , live_queries : '/live_queries' , live_query_new : '/live_queries/new' , live_query_details : '/live_queries/:liveQueryId' , packs : '/packs' , pack_add : '/packs/add' , pack_details : '/packs/:packId' , pack_edit : '/packs/:packId/edit' , } ; export const pagePathGetters = { base : ( ) => '/' , overview : ( ) => '/' , live_queries : ( ) => '/live_queries' , live_query_new : ( ) => '/live_queries/new' , live_query_details : ( { liveQueryId } ) => `/live_queries/${ liveQueryId }` , saved_queries : ( ) => '/saved_queries' , saved_query_new : ( ) => '/saved_queries/new' , saved_query_edit : ( { savedQueryId } ) => `/saved_queries/${ savedQueryId }` , packs : ( ) => '/packs' , pack_add : ( ) => '/packs/add' , pack_details : ( { packId } ) => `/packs/${ packId }` , pack_edit : ( { packId } ) => `/packs/${ packId }/edit` , } ;