import preact, { h, Component } from 'preact'; // eslint-disable-line no-unused-vars

import Markup from 'preact-markup';

import { getContent } from '../helpers/helpers';

export default class Page extends Component {

    constructor() {
        super();
    }

    render(props) {
        const page = props.page || null;

        if (!page) {
            return;
        }


        return (
            <Markup markup={getContent(page.content)} />
        );
    }
}
