source: imaps-frontend/src/components/Logo/Logo.jsx@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 571 bytes
Line 
1import React from "react";
2import { useNavigate } from "react-router-dom";
3import novo_logo from "../../assets/novo_logo_nobg_cropped.png";
4import styles from "./Logo.module.css";
5
6function Logo({ position = "fixed" }) {
7 const navigate = useNavigate();
8
9 const handleClick = () => {
10 navigate("/");
11 };
12
13 return (
14 <div
15 className={position === "fixed" ? styles.fixedLogoContainer : styles.inlineLogoContainer}
16 onClick={handleClick}
17 >
18 <img src={novo_logo} alt="Logo" className={styles.logoImage} />
19 </div>
20 );
21}
22
23export default Logo;
Note: See TracBrowser for help on using the repository browser.