mirror of
https://github.com/vale981/Vulcan
synced 2025-03-08 19:11:38 -05:00
24 lines
No EOL
548 B
JavaScript
24 lines
No EOL
548 B
JavaScript
import React from 'react';
|
|
import { IndexLink } from 'react-router';
|
|
|
|
const Logo = ({logoUrl, siteTitle}) => {
|
|
if (logoUrl) {
|
|
return (
|
|
<h1 className="logo-image ">
|
|
<IndexLink to={{pathname: "/"}}>
|
|
<img src={logoUrl} alt={siteTitle} style={{maxWidth: "100px", maxHeight: "100px"}} />
|
|
</IndexLink>
|
|
</h1>
|
|
)
|
|
} else {
|
|
return (
|
|
<h1 className="logo-text">
|
|
<IndexLink to={{pathname: "/"}}>{siteTitle}</IndexLink>
|
|
</h1>
|
|
)
|
|
}
|
|
}
|
|
|
|
Logo.displayName = "Logo";
|
|
|
|
module.exports = Logo; |