2019-06-20 19:37:28 +07:00
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
import styled from 'react-emotion';
|
|
|
|
import logo from './img/logo.svg';
|
|
|
|
|
2019-07-09 23:45:35 +07:00
|
|
|
interface Props {
|
|
|
|
md?: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
const StyledLogo = styled('div')<Props>`
|
2019-06-20 19:37:28 +07:00
|
|
|
&& {
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
box-sizing: border-box;
|
|
|
|
background-position: center;
|
|
|
|
background-size: contain;
|
|
|
|
background-image: url(${logo});
|
|
|
|
background-repeat: no-repeat;
|
2019-07-09 23:45:35 +07:00
|
|
|
width: ${({ md }) => (md ? '90px' : '40px')};
|
|
|
|
height: ${({ md }) => (md ? '90px' : '40px')};
|
|
|
|
`;
|
|
|
|
const Logo: React.FC<Props> = ({ md = false }) => {
|
|
|
|
return <StyledLogo md={md} />;
|
2019-06-20 19:37:28 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
export default Logo;
|