This commit is contained in:
parent
c402405015
commit
2d537a7648
|
|
@ -12,6 +12,8 @@ import useHotkey from "@/lib/hooks/use-hotkey"
|
||||||
import { useTheme } from "next-themes"
|
import { useTheme } from "next-themes"
|
||||||
import { useContext } from "react"
|
import { useContext } from "react"
|
||||||
|
|
||||||
|
import { useTranslation } from 'react-i18next'
|
||||||
|
|
||||||
export default function ChatPage() {
|
export default function ChatPage() {
|
||||||
useHotkey("o", () => handleNewChat())
|
useHotkey("o", () => handleNewChat())
|
||||||
useHotkey("l", () => {
|
useHotkey("l", () => {
|
||||||
|
|
@ -24,6 +26,8 @@ export default function ChatPage() {
|
||||||
|
|
||||||
const { theme } = useTheme()
|
const { theme } = useTheme()
|
||||||
|
|
||||||
|
const { t } = useTranslation()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{chatMessages.length === 0 ? (
|
{chatMessages.length === 0 ? (
|
||||||
|
|
|
||||||
|
|
@ -4,15 +4,18 @@ import Link from "next/link"
|
||||||
import { FC } from "react"
|
import { FC } from "react"
|
||||||
import { ChatbotUISVG } from "../icons/chatbotui-svg"
|
import { ChatbotUISVG } from "../icons/chatbotui-svg"
|
||||||
|
|
||||||
|
import { useTranslation } from 'react-i18next'
|
||||||
|
|
||||||
interface BrandProps {
|
interface BrandProps {
|
||||||
theme?: "dark" | "light"
|
theme?: "dark" | "light"
|
||||||
}
|
}
|
||||||
|
|
||||||
export const Brand: FC<BrandProps> = ({ theme = "dark" }) => {
|
export const Brand: FC<BrandProps> = ({ theme = "dark" }) => {
|
||||||
|
const { t } = useTranslation()
|
||||||
return (
|
return (
|
||||||
<Link
|
<Link
|
||||||
className="flex cursor-pointer flex-col items-center hover:opacity-50"
|
className="flex cursor-pointer flex-col items-center hover:opacity-50"
|
||||||
href="https://www.chatbotui.com"
|
href="https://ai.szaiai.com"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
>
|
>
|
||||||
|
|
@ -20,7 +23,7 @@ export const Brand: FC<BrandProps> = ({ theme = "dark" }) => {
|
||||||
<ChatbotUISVG theme={theme === "dark" ? "dark" : "light"} scale={0.3} />
|
<ChatbotUISVG theme={theme === "dark" ? "dark" : "light"} scale={0.3} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="text-4xl font-bold tracking-wide">Chatbot UI</div>
|
<div className="text-4xl font-bold tracking-wide">{t("Company Name")}</div>
|
||||||
</Link>
|
</Link>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue