18 lines
302 B
JavaScript
18 lines
302 B
JavaScript
// @flow
|
|
import React from 'react';
|
|
|
|
type Props = {
|
|
themePath: ?string,
|
|
};
|
|
|
|
const Theme = (props: Props) => {
|
|
const { themePath } = props;
|
|
|
|
if (!themePath) {
|
|
return null;
|
|
}
|
|
|
|
return <link href={themePath} rel="stylesheet" type="text/css" media="screen,print" />;
|
|
};
|
|
|
|
export default Theme;
|