File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change
1
+ import { Box } from "@chakra-ui/react" ;
1
2
import Image from "next/image" ;
2
- import { ComponentProps } from "react " ;
3
+ import Link from "next/link " ;
3
4
import LogoImg from "public/profile-512x512.png" ;
4
- import { Box } from "@chakra-ui/ react" ;
5
+ import { ComponentProps } from "react" ;
5
6
6
7
type LogoProps = {
7
8
size ?: string ;
8
9
} & Partial < ComponentProps < typeof Image > > ;
9
10
10
11
export default function Logo ( { size = "120px" , ...restProps } : LogoProps ) {
11
12
return (
12
- < Box boxSize = { size } position = "relative" flexShrink = "0" >
13
- < Image fill src = { LogoImg } alt = "로고" sizes = { size } { ...restProps } />
14
- </ Box >
13
+ < Link href = "/" >
14
+ < Box boxSize = { size } position = "relative" flexShrink = "0" >
15
+ < Image fill src = { LogoImg } alt = "로고" sizes = { size } { ...restProps } />
16
+ </ Box >
17
+ </ Link >
15
18
) ;
16
19
}
You can’t perform that action at this time.
0 commit comments