export const CHANGE_TABLETOP_ID = 'change-tabletop-id' ; export interface LocationState { tabletopId : string ; resourceKey ? : string ; } export const routesMap = { [ CHANGE_TABLETOP_ID ] : '/:tabletopId?/:resourceKey?' } ; export function setTabletopIdAction ( tabletopId ? , tabletopTitle ? , resourceKey ? ) { return { type : CHANGE_TABLETOP_ID , payload : { tabletopId , tabletopTitle , resourceKey } } ; }