import type { CSSProperties } from 'react' import styles from './MenuItemThumbnail.module.scss' type MenuItemThumbnailProps = { name: string size?: 'small' | 'hero' style?: CSSProperties } const UtensilsIcon = () => ( ) const photoByKeyword: Array<{ keyword: string; src: string }> = [ { keyword: 'pizza', src: '/pizza.png' }, { keyword: 'burger', src: '/burger.png' }, ] // Falls back to a simple icon for any menu item that isn't Pizza or Burger, // since there's no photo for it yet. const photoFor = (name: string) => { const lower = name.toLowerCase() return photoByKeyword.find((entry) => lower.includes(entry.keyword))?.src } export const MenuItemThumbnail = ({ name, size = 'small', style, }: MenuItemThumbnailProps) => { const src = photoFor(name) return ( ) }