almaze-app/components/chat/sidebar/SidebarHeader.tsx

34 lines
1.4 KiB
TypeScript
Raw Normal View History

2025-02-11 21:52:34 +05:30
import { RiTwitterXLine } from "react-icons/ri";
import { SiGithub , SiGitbook } from "react-icons/si";
import Image, { StaticImageData } from 'next/image';
interface SidebarHeaderProps {
onNewChat: () => void;
logo: StaticImageData;
}
export const SidebarHeader = ({ onNewChat, logo }: SidebarHeaderProps) => (
<div className="p-4 border-b">
<div className="flex items-center justify-between mb-10">
<Image src={logo} alt="Soviro Logo" width={26} />
2025-02-11 21:52:34 +05:30
<div className="flex items-center space-x-4 mt-1">
<a href="https://x.com/soviro_labs" target='_blank'>
2025-02-11 21:52:34 +05:30
<RiTwitterXLine className='cursor-pointer text-gray-600 hover:text-gray-800 transition-colors'/>
</a>
<a href="https://sovirolabs.gitbook.io/" target='_blank'>
2025-02-11 21:52:34 +05:30
<SiGitbook className='cursor-pointer text-gray-600 hover:text-gray-800 transition-colors'/>
</a>
<a href="https://github.com/Soviro-Labs" target='_blank'>
2025-02-11 21:52:34 +05:30
<SiGithub className='cursor-pointer text-gray-600 hover:text-gray-800 transition-colors'/>
</a>
</div>
</div>
<button
onClick={onNewChat}
className="w-full py-4 text-[#F3BA2F] border-2 border-dashed border-[rgba(243,186,47,0.5)] rounded-lg bg-gradient-to-t from-[rgba(243,186,47,0.2)] to-[rgba(243,186,47,0)] hover:bg-[rgba(243,186,47,0.1)] transition-colors text-sm"
2025-02-11 21:52:34 +05:30
>
Start a new chat
</button>
</div>
);