2023-02-11 10:22:15 -05:00
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
|
|
export default function Prompt({ title, prompt, id }) {
|
|
|
|
|
return (
|
|
|
|
|
<div
|
|
|
|
|
// onclick="selectPromptTemplate(0)"
|
|
|
|
|
className="flex w-full flex-col gap-2 rounded-md bg-gray-50 p-4 text-left hover:bg-gray-200 dark:bg-white/5 "
|
|
|
|
|
>
|
|
|
|
|
<h2 className="m-auto flex items-center gap-3 text-lg font-normal md:flex-col md:gap-2">
|
2023-05-18 11:09:31 -07:00
|
|
|
{title}
|
2023-02-11 10:22:15 -05:00
|
|
|
</h2>
|
|
|
|
|
<button>
|
|
|
|
|
<p className="w-full rounded-md bg-gray-50 p-3 hover:bg-gray-200 dark:bg-white/5 dark:hover:bg-gray-900">
|
|
|
|
|
{prompt}
|
|
|
|
|
</p>
|
|
|
|
|
</button>
|
|
|
|
|
<span className="font-medium">Use prompt →</span>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|