Repository URL to install this package:
|
Version:
0.0.15 ▾
|
import React from 'react';
import { JsonLd } from '@skava/packages/ui';
import { headerLogoSchema } from '@skava/packages/core/schemas';
import { LogoIcon } from './LogoIcon';
import { StyledLink } from './styled';
import { logoProps } from './fixture';
export default class HeaderLogo extends React.PureComponent {
get schemaData() {
return headerLogoSchema();
}
render() {
const { className } = this.props;
// @todo why does the className go to the wrap & why do we have a link + wrap?
return (React.createElement(StyledLink, { className: className },
React.createElement(LogoIcon, Object.assign({}, logoProps, { fill: '#2d2d2c', id: 'header-logo' })),
React.createElement(JsonLd, { data: this.schemaData })));
}
}
//# sourceMappingURL=HeaderLogo.js.map