dsi-icl/optimise

View on GitHub
packages/optimise-ui/src/components/scaffold/helmet.jsx

Summary

Maintainability
A
0 mins
Test Coverage
import React, { Component } from 'react';
import { Helmet } from 'react-helmet-async';
import appInfo from '../../../package.json';

export default class LocalHelmet extends Component {

    render() {
        const { title = '', description = '' } = this.props;
        return (
            <Helmet>
                <title>{appInfo.productName || 'Optimise MS'} : {title}</title>
                <meta name="description" content={description} />
            </Helmet>
        );
    }
}