import React from 'react' import Image from 'next/image' import { Button, Row } from '../../atoms' import styles from './styles.module.css' import Link from 'next/link' interface HeaderHomeProps { logo?: string showLogo?: boolean showButton?: boolean url?: string userName?: string isLogin?: boolean onClick?: () => void } export const HeaderHome: React.FC = ({ logo = '', url = '/', userName = '', isLogin = false, showButton = true, showLogo = true, onClick = () => { } }) => { const handleClick = (): void => { onClick() } return (
{showLogo &&
Logo
} {showButton && } {isLogin &&
{userName.slice(0, 1).toUpperCase()}
}
) }