2019-10-08 12:47:11 +07:00
|
|
|
import React from 'react';
|
2019-12-30 16:12:00 +07:00
|
|
|
import styled from '@emotion/styled';
|
2019-10-08 12:47:11 +07:00
|
|
|
|
|
|
|
import Logo from '../Logo';
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
logo?: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
const HeaderLogo: React.FC<Props> = ({ logo }) => {
|
|
|
|
if (logo) {
|
2019-12-30 16:12:00 +07:00
|
|
|
const Wrapper = styled('div')({
|
|
|
|
fontSize: 0,
|
|
|
|
});
|
|
|
|
return (
|
|
|
|
<Wrapper>
|
|
|
|
<img alt="logo" height="40px" src={logo} />
|
|
|
|
</Wrapper>
|
|
|
|
);
|
2019-10-08 12:47:11 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
return <Logo />;
|
|
|
|
};
|
|
|
|
|
|
|
|
export default HeaderLogo;
|