import { FC } from 'react'; import { Prompt } from '@/types/prompt'; import { PromptComponent } from './Prompt'; interface Props { prompts: Prompt[]; } export const Prompts: FC = ({ prompts }) => { return (
{prompts .slice() .reverse() .map((prompt, index) => ( ))}
); };