20 lines
728 B
TypeScript
20 lines
728 B
TypeScript
// 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;
|
|
}
|