mirror of
https://github.com/NovaOSS/nova-betterchat.git
synced 2024-11-26 05:33:58 +01:00
4fa5c14734
fixes partially #9 and #16
22 lines
579 B
TypeScript
22 lines
579 B
TypeScript
import React from 'react';
|
|
|
|
import PlusIcon from '@icon/PlusIcon';
|
|
|
|
import useAddChat from '@hooks/useAddChat';
|
|
|
|
const NewChat = () => {
|
|
const addChat = useAddChat();
|
|
|
|
return (
|
|
<a
|
|
className='max-md:hidden flex py-3 px-3 items-center gap-3 rounded-md hover:bg-gray-500/10 transition-colors duration-200 text-white cursor-pointer text-sm md:mb-2 flex-shrink-0 md:border md:border-white/20'
|
|
onClick={addChat}
|
|
>
|
|
<PlusIcon />{' '}
|
|
<span className='hidden md:inline-flex text-white text-sm'>New chat</span>
|
|
</a>
|
|
);
|
|
};
|
|
|
|
export default NewChat;
|