forked from sombochea/verdaccio-ui
544b999f81
* fix: remove whitespace from logo image - closes #374 * test: update snapshot Co-authored-by: Juan Picado @jotadeveloper <juanpicado19@gmail.com>
26 lines
422 B
TypeScript
26 lines
422 B
TypeScript
import React from 'react';
|
|
import styled from '@emotion/styled';
|
|
|
|
import Logo from '../Logo';
|
|
|
|
interface Props {
|
|
logo?: string;
|
|
}
|
|
|
|
const HeaderLogo: React.FC<Props> = ({ logo }) => {
|
|
if (logo) {
|
|
const Wrapper = styled('div')({
|
|
fontSize: 0,
|
|
});
|
|
return (
|
|
<Wrapper>
|
|
<img alt="logo" height="40px" src={logo} />
|
|
</Wrapper>
|
|
);
|
|
}
|
|
|
|
return <Logo />;
|
|
};
|
|
|
|
export default HeaderLogo;
|