21 lines
281 B
React
21 lines
281 B
React
|
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;
|