update ai commerce section
This commit is contained in:
19
src/lib/experience/voice.ts
Normal file
19
src/lib/experience/voice.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
// The ONLY module the hero voice demo imports for data.
|
||||
//
|
||||
// Same contract as ./search.ts: everything is local dummy JSON today. To go
|
||||
// live, swap the function bodies for real API calls and keep these exported
|
||||
// signatures unchanged — the hero never needs to change.
|
||||
|
||||
import voiceData from "@/data/experience/voice-requests.json";
|
||||
import type { VoiceRequest } from "@/types/experience";
|
||||
|
||||
const requests = voiceData as VoiceRequest[];
|
||||
|
||||
/**
|
||||
* The spoken requests the hero demo cycles through — deliberately spread across
|
||||
* shopping, services and healthcare so the hero shows Nearle covers products
|
||||
* *and* local services, not only grocery.
|
||||
*/
|
||||
export function getVoiceRequests(): VoiceRequest[] {
|
||||
return requests;
|
||||
}
|
||||
Reference in New Issue
Block a user