{prompts.map((prompt, index) => (
))}
import PromptEntry from './PromptEntry'
import { PromptInput } from "../types";
interface PromptPanelProps {
prompts: PromptInput[];
addPrompt: (prompt: string) => void;
}
const PromptPanel = (props: PromptPanelProps) => {
const prompts = props.prompts;
const addPrompt = props.addPrompt;
return (
<>
{prompts.map((prompt, index) => (