import React from "react"; import { Button } from "@/components/ui/button"; import DevicePicker from "@/components/DevicePicker"; import { IconAlertCircle, IconEar, IconLoader2 } from "@tabler/icons-react"; type SetupProps = { handleStart: () => void; }; const buttonLabel = { intro: "Next", setup: "Let's begin!", loading: "Joining...", }; export const Setup: React.FC = ({ handleStart }) => { const [state, setState] = React.useState<"intro" | "setup" | "loading">( "intro" ); return (

Welcome to Storytime

{state === "intro" ? ( <>

This app demos a voice-controlled storytelling chatbot. It will start with the bot asking you what kind of story you'd like to hear (e.g. a fairy tale, a mystery, etc.). After each scene, the bot will pause to ask for your input. Direct the story any way you choose!

For best results, try in a quiet environment!

This demo expires after 5 minutes.

) : ( <>

Since you'll be talking to Storybot, we need to make sure it can hear you! Please configure your microphone and speakers below.

)}
); }; export default Setup;