import { h } from 'preact' import { bool, string } from 'prop-types' import styled, { css } from 'styled-components' import { colours } from '../../assets/theme' const Logo = ({ colour = colours.offwhite, active }) => ( ) const LogoSvg = styled.svg` width: 200px; padding: 1em; transform: translateY(-20%); transition: all 0.2s ease-in-out; opacity: 0; pointer-events: none; ${props => props.$active && css` transform: translateY(0%); opacity: 1; `} ` Logo.propTypes = { colour: string, active: bool, } export default Logo