feat: improve structure and error handling
This commit is contained in:
15
components/Header/Logo/index.tsx
Normal file
15
components/Header/Logo/index.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import Link from "next/link"
|
||||
|
||||
import Image from "@/components/Image"
|
||||
|
||||
import styles from "./logo.module.css"
|
||||
|
||||
import { LogoProps } from "@/types/components/header/logo"
|
||||
|
||||
export default async function Logo({ title, height, width, src }: LogoProps) {
|
||||
return (
|
||||
<Link className={styles.link} href="#">
|
||||
<Image alt={title} height={height} src={src} width={width} />
|
||||
</Link>
|
||||
)
|
||||
}
|
||||
4
components/Header/Logo/logo.module.css
Normal file
4
components/Header/Logo/logo.module.css
Normal file
@@ -0,0 +1,4 @@
|
||||
.link {
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
}
|
||||
Reference in New Issue
Block a user