mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 00:40:14 +01:00
33 lines
1,013 B
TypeScript
33 lines
1,013 B
TypeScript
|
|
import { Trigger } from '@radix-ui/react-popover';
|
||
|
|
|
||
|
|
export default function TitleButton({ primaryText = '', secondaryText = '' }) {
|
||
|
|
return (
|
||
|
|
<Trigger asChild>
|
||
|
|
<div
|
||
|
|
className="group flex cursor-pointer items-center gap-1 rounded-xl px-3 py-2 text-lg font-medium hover:bg-gray-50 radix-state-open:bg-gray-50 dark:hover:bg-black/10 dark:radix-state-open:bg-black/20"
|
||
|
|
// type="button"
|
||
|
|
>
|
||
|
|
<div>
|
||
|
|
{primaryText}{' '}
|
||
|
|
{!!secondaryText && <span className="text-token-text-secondary">{secondaryText}</span>}
|
||
|
|
</div>
|
||
|
|
<svg
|
||
|
|
width="16"
|
||
|
|
height="17"
|
||
|
|
viewBox="0 0 16 17"
|
||
|
|
fill="none"
|
||
|
|
className="text-token-text-tertiary"
|
||
|
|
>
|
||
|
|
<path
|
||
|
|
d="M11.3346 7.83203L8.00131 11.1654L4.66797 7.83203"
|
||
|
|
stroke="currentColor"
|
||
|
|
strokeWidth="2"
|
||
|
|
strokeLinecap="round"
|
||
|
|
strokeLinejoin="round"
|
||
|
|
/>
|
||
|
|
</svg>
|
||
|
|
</div>
|
||
|
|
</Trigger>
|
||
|
|
);
|
||
|
|
}
|