mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 04:16:37 -04:00
19 lines
No EOL
406 B
JavaScript
19 lines
No EOL
406 B
JavaScript
import React from 'react';
|
|
|
|
const Logo = ({logoUrl, siteTitle}) => {
|
|
if (logoUrl) {
|
|
return (
|
|
<h1 className="logo-image ">
|
|
<a href="/">
|
|
<img src={logoUrl} alt={siteTitle} style={{maxWidth: "100px", maxHeight: "100px"}} />
|
|
</a>
|
|
</h1>
|
|
)
|
|
} else {
|
|
return (
|
|
<h1 className="logo-text"><a href="/">{siteTitle}</a></h1>
|
|
)
|
|
}
|
|
}
|
|
|
|
module.exports = Logo; |