23 lines
457 B
TypeScript
23 lines
457 B
TypeScript
import { NextComponentType } from 'next'
|
|
|
|
interface PromptEntryProps {
|
|
prompt: string
|
|
index: number
|
|
className: string
|
|
}
|
|
|
|
export default function PromptEntry({
|
|
prompt,
|
|
index,
|
|
className,
|
|
}: PromptEntryProps) {
|
|
|
|
return (
|
|
<>
|
|
<p className={className}>
|
|
{prompt == "" ? index == 5 ? "UP NEXT: Anything you want" + prompt : "..." : index == 5 ? "UP NEXT: " + prompt : prompt}
|
|
</p>
|
|
</>
|
|
)
|
|
}
|