2020-12-01 18:56:59 +01:00
|
|
|
// @flow
|
2017-12-21 22:08:54 +01:00
|
|
|
import React from 'react';
|
2017-09-07 02:52:34 +02:00
|
|
|
|
2020-12-01 18:56:59 +01:00
|
|
|
type Props = {
|
|
|
|
themePath: ?string,
|
|
|
|
};
|
|
|
|
|
|
|
|
const Theme = (props: Props) => {
|
2017-09-07 02:52:34 +02:00
|
|
|
const { themePath } = props;
|
|
|
|
|
2018-04-17 08:20:10 +02:00
|
|
|
if (!themePath) {
|
|
|
|
return null;
|
|
|
|
}
|
2017-09-07 02:52:34 +02:00
|
|
|
|
2018-04-17 08:20:10 +02:00
|
|
|
return <link href={themePath} rel="stylesheet" type="text/css" media="screen,print" />;
|
2017-09-07 02:52:34 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
export default Theme;
|