mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-03-07 08:40:19 +01:00
18 lines
651 B
TypeScript
18 lines
651 B
TypeScript
|
|
interface ConvoStarterProps {
|
||
|
|
text: string;
|
||
|
|
onClick: () => void;
|
||
|
|
}
|
||
|
|
|
||
|
|
export default function ConvoStarter({ text, onClick }: ConvoStarterProps) {
|
||
|
|
return (
|
||
|
|
<button
|
||
|
|
onClick={onClick}
|
||
|
|
className="relative flex w-40 cursor-pointer flex-col gap-2 rounded-2xl border border-border-medium px-3 pb-4 pt-3 text-start align-top text-[15px] shadow-[0_0_2px_0_rgba(0,0,0,0.05),0_4px_6px_0_rgba(0,0,0,0.02)] transition-colors duration-300 ease-in-out fade-in hover:bg-surface-tertiary"
|
||
|
|
>
|
||
|
|
<p className="break-word line-clamp-3 overflow-hidden text-balance break-all text-text-secondary">
|
||
|
|
{text}
|
||
|
|
</p>
|
||
|
|
</button>
|
||
|
|
);
|
||
|
|
}
|