@@ -5,21 +5,13 @@ import { HamburgerMenuIcon } from '@radix-ui/react-icons'
5
5
import { Avatar , Flex , Heading , IconButton , Select , Tooltip } from '@radix-ui/themes'
6
6
import cs from 'classnames'
7
7
import NextLink from 'next/link'
8
- import { usePathname } from 'next/navigation'
9
8
import { FaAdjust , FaGithub , FaMoon , FaRegSun } from 'react-icons/fa'
10
9
import { Link } from './Link'
11
10
import { useTheme } from './Themes'
12
11
13
- export interface HeaderProps {
14
- children ?: React . ReactNode
15
- gitHubLink ?: string
16
- ghost ?: boolean
17
- }
18
-
19
- export const Header = ( { children, gitHubLink, ghost } : HeaderProps ) => {
20
- const pathname = usePathname ( )
12
+ export const Header = ( ) => {
21
13
const { theme, setTheme } = useTheme ( )
22
- const [ show , setShow ] = useState ( false )
14
+ const [ , setShow ] = useState ( false )
23
15
24
16
const toggleNavBar = useCallback ( ( ) => {
25
17
setShow ( ( state ) => ! state )
@@ -32,7 +24,7 @@ export const Header = ({ children, gitHubLink, ghost }: HeaderProps) => {
32
24
>
33
25
< Flex align = "center" gap = "3" >
34
26
< NextLink href = "/" >
35
- < Heading as = "h2" size = "3 " style = { { maxWidth : 200 } } >
27
+ < Heading as = "h2" size = "4 " style = { { maxWidth : 200 } } >
36
28
ChatGPT Lite
37
29
</ Heading >
38
30
</ NextLink >
0 commit comments