Feature/add emoji (#103)
This commit is contained in:
parent
f68b05d5ec
commit
37c3b8979c
22 changed files with 350 additions and 74 deletions
|
|
@ -7,6 +7,8 @@ import {
|
|||
} from '@heroicons/react/24/solid'
|
||||
export type IHeaderProps = {
|
||||
title: string
|
||||
icon: string
|
||||
icon_background: string
|
||||
isMobile?: boolean
|
||||
onShowSideBar?: () => void
|
||||
onCreateNewChat?: () => void
|
||||
|
|
@ -14,6 +16,8 @@ export type IHeaderProps = {
|
|||
const Header: FC<IHeaderProps> = ({
|
||||
title,
|
||||
isMobile,
|
||||
icon,
|
||||
icon_background,
|
||||
onShowSideBar,
|
||||
onCreateNewChat,
|
||||
}) => {
|
||||
|
|
@ -28,7 +32,7 @@ const Header: FC<IHeaderProps> = ({
|
|||
</div>
|
||||
) : <div></div>}
|
||||
<div className='flex items-center space-x-2'>
|
||||
<AppIcon size="small" />
|
||||
<AppIcon size="small" icon={icon} background={icon_background} />
|
||||
<div className=" text-sm text-gray-800 font-bold">{title}</div>
|
||||
</div>
|
||||
{isMobile ? (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue