import { useState } from "react";
import { Row, Col, Drawer } from "antd";
import { withTranslation } from "react-i18next";
import Container from "../../common/Container";
import { SvgIcon } from "../../common/SvgIcon";
import { Button } from "../../common/Button";
import {
HeaderSection,
LogoContainer,
Burger,
NotHidden,
Menu,
CustomNavLinkSmall,
Label,
Outline,
Span,
} from "./styles";
const Header = ({ t }: any) => {
const [visible, setVisibility] = useState(false);
const showDrawer = () => {
setVisibility(!visible);
};
const onClose = () => {
setVisibility(!visible);
};
const MenuItem = () => {
const scrollTo = (id: string) => {
const element = document.getElementById(id) as HTMLDivElement;
element.scrollIntoView({
behavior: "smooth",
});
setVisibility(false);
};
return (
<>
scrollTo("about")}>
{t("About")}
scrollTo("mission")}>
{t("Mission")}
scrollTo("product")}>
{t("Product")}
scrollTo("contact")}
>
>
);
};
return (
);
};
export default withTranslation()(Header);