import { PlayingState } from "../types";
import { IoMdClose } from "react-icons/io";
interface PromptEntryProps {
prompt: string;
index: number;
className: string;
playingState: PlayingState;
resetCallback: () => void;
}
export default function PromptEntry({
prompt,
index,
className,
playingState,
resetCallback,
}: PromptEntryProps) {
const getPromptCopy = (prompt: string) => {
switch (playingState) {
case PlayingState.UNINITIALIZED:
case PlayingState.SAME_PROMPT:
switch (index) {
case 0:
return prompt;
case 1:
return prompt;
case 2:
if (prompt == " " || prompt == "") {
return {"
{getPromptCopy(prompt)}
{/* TODO(hayk): Re-enable this when it's working. */} {/* {index == 2 ? (