madiator.com/ui/component/theme/view.jsx
2021-08-16 12:11:25 +02:00

19 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;