import React, { useState, MouseEvent } from 'react'; import Transfer from '../assets/transfer.png'; import Search from '../assets/search.svg'; import UK from '../assets/UK.png'; import PL from '../assets/PL.png'; import User from '../assets/user.png'; import CloseIcon from '../assets/close.svg'; import { Profile } from './Profile'; import { Dropdown } from './Dropdown'; import styled from 'styled-components'; const TopbarTextStyled = styled.div` @media only screen and (max-width: 670px) { display: none; } `; const TopbarStyled = styled.div` background-color: #ffdc61; height: 80px; padding: 5px; font-family: comic sans MS; font-size: 24px; font-weight: bold; display: flex; justify-content: space-between; `; const TopbarLogoWrapperStyled = styled.div` display: flex; align-items: center; flex-grow: 0.5; justify-content: flex-start; `; const TopbarLogoStyled = styled.img` width: 80px; height: 80px; @media only screen and (max-width: 670px) { width: 60px; height: 60px; } `; const TopbarInputStyled = styled.div` width: 70%; display: flex; flex-grow: 3; `; const TopbarInputFieldStyled = styled.div` width: 96%; margin-top: 10px; `; const TopbarInputIconStyled = styled.img` width: 35px; @media only screen and (max-width: 670px) { width: 25px; } `; const TopbarIcon = styled.img` width: 50px; cursor: pointer; @media only screen and (max-width: 670px) { width: 35px; } `; const TopbarIconBox = styled.div` display: flex; align-items: center; justify-content: space-around; flex-grow: 1.5; `; interface TopbarProps { handleTransfer: (e: MouseEvent) => void; } export const Topbar = ({ handleTransfer }: TopbarProps) => { const [isPolish, setIsPolish] = useState(false); const [anchorEl, setAnchorEl] = useState(null); const onLangChange = () => setIsPolish(!isPolish); const handleProfile = (event: MouseEvent) => setAnchorEl(event.currentTarget); const handleClose = () => setAnchorEl(null); return ( plan na plan ); };