Spaces:
Sleeping
Sleeping
Download phd-advisor-frontend/src/components/SearchPathGate.js from BrainForge/HealthyEatingAdvisor: direct link, hf CLI and curl.
- Browser
- Download file 865 Bytes
-
https://huggingface.co/spaces/BrainForge/HealthyEatingAdvisor/resolve/main/phd-advisor-frontend/src/components/SearchPathGate.js
- Command line
-
hf download hf://spaces/BrainForge/HealthyEatingAdvisor/phd-advisor-frontend/src/components/SearchPathGate.js
-
curl -L -o SearchPathGate.js https://huggingface.co/spaces/BrainForge/HealthyEatingAdvisor/resolve/main/phd-advisor-frontend/src/components/SearchPathGate.js
865 Bytes
| import { Leaf } from 'lucide-react'; | |
| import { writeScopedItem, SEARCH_PATH_KEY } from '../utils/canvasStorage'; | |
| export const SEARCH_PATH_STORAGE_KEY = SEARCH_PATH_KEY; | |
| export const FOOD_TRACK = 'Foods'; | |
| /** Food is the only track. Non-food options (Supplements, Exercise, Healthcare) are gone. */ | |
| export const SEARCH_PATH_OPTIONS = [ | |
| { | |
| value: FOOD_TRACK, | |
| title: 'Foods', | |
| description: 'Clean eating, produce, recipes, and everyday real-food habits.', | |
| icon: Leaf, | |
| color: '#059669', | |
| bg: '#ECFDF5', | |
| }, | |
| ]; | |
| export function persistFoodTrack(userId) { | |
| if (userId) writeScopedItem(SEARCH_PATH_KEY, userId, FOOD_TRACK); | |
| } | |
| /** | |
| * Never show the first-run track picker. Heidi’s panel is food-only. | |
| */ | |
| export function needsSearchPath(_profile, _userId) { | |
| return false; | |
| } | |
| const SearchPathGate = () => null; | |
| export default SearchPathGate; | |