Summary
The MenuItem component contains the following thumbnail behavior and logic:
- Display a thumbnail image as a background image
- If there is no thumbnail image, or if there is but it's still loading, display a placeholder icon
The Card component will need the same features, so we should extract this from MenuItem into a new Thumbnail component.
Design spec
Considerations
- Some styles may be shared by both MenuItem and Card, and should therefore be included in the new Thumbnail component. Others may be more specific to the component implementing Thumbnail, and should reside in those components.
Acceptance criteria
- If needed, a Figma spec for Thumbnail is created
- A new Thumbnail component is added to Codex
- The Thumbnail component is implemented by MenuItem (this task should be completed before the Card MVP, so using Thumbnail within Card is not part of this task's scope)
- Any styles specific to MenuItem will remain in the MenuItem component

