SPB Git forge

spb/rareindex

Public
54commits 1branches 0releases
7.1 MBsize
maindefault branch
10 days agolast push
TypeScript 61.9% HTML 37.2% SQL 0.7%
1.5 KB · 60 lines typescript
Raw Blame History
1/** Placeholder glyph per taxonomy family — plain module so both server and client components can call it. */2export type PlaceholderGlyph = 'card' | 'comic' | 'watch' | 'brick' | 'game' | 'sneaker' | 'coin' | 'bottle' | 'car' | 'toy' | 'book' | 'art' | 'box';34export function glyphForFamily(familySlug: string | null | undefined): PlaceholderGlyph {5  switch (familySlug) {6    case 'trading_cards':7    case 'sports_cards':8      return 'card';9    case 'comics':10    case 'manga':11      return 'comic';12    case 'watches':13      return 'watch';14    case 'lego':15      return 'brick';16    case 'video_games':17    case 'gaming_hardware':18    case 'arcade_pinball':19    case 'board_games':20      return 'game';21    case 'sneakers':22    case 'fashion_streetwear':23      return 'sneaker';24    case 'coins':25    case 'banknotes':26    case 'medals':27    case 'stamps':28      return 'coin';29    case 'wine':30    case 'whisky':31    case 'rum':32    case 'cognac':33    case 'perfume':34      return 'bottle';35    case 'automobiles':36    case 'motorcycles':37    case 'model_cars':38      return 'car';39    case 'funko':40    case 'designer_toys':41    case 'action_figures':42    case 'vintage_toys':43    case 'dolls':44    case 'plush':45      return 'toy';46    case 'books':47    case 'historical_documents':48    case 'maps':49      return 'book';50    case 'art':51    case 'contemporary_art':52    case 'photography':53    case 'movie_posters':54    case 'animation_art':55      return 'art';56    default:57      return 'box';58  }59}60