export function parseRoute(hash = window.location.hash || '#/') {
  if (hash.startsWith('#/item/')) {
    const [, itemId] = hash.match(/^#\/item\/([^/]+)/) || []
    return { name: 'item', itemId: decodeURIComponent(itemId || '') }
  }
  return { name: 'demo' }
}
