20 lines
281 B
JavaScript
20 lines
281 B
JavaScript
import React from "react";
|
|
|
|
const Theme = props => {
|
|
const { themePath } = props;
|
|
|
|
if (!themePath) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<link
|
|
href={themePath}
|
|
rel="stylesheet"
|
|
type="text/css"
|
|
media="screen,print"
|
|
/>
|
|
);
|
|
};
|
|
|
|
export default Theme;
|