madiator.com/ui/component/theme/view.jsx

19 lines
302 B
React
Raw Normal View History

2021-08-16 12:11:25 +02:00
// @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;