"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var bowser = require("bowser");
var glamor = require('glamor/server');
var common_1 = require("../common");
exports.React = common_1.React;
exports.fastClick = common_1.fastClick;
tslib_1.__exportStar(require("../components"), exports);
function renderCss(args) {
    var page = args.renderPage();
    var styles = glamor.renderStatic(function () { return page.html; });
    return tslib_1.__assign({}, page, styles);
}
exports.renderCss = renderCss;
function browser(args) {
    var userAgent = args.req.headers['user-agent'];
    return bowser._detect(userAgent);
}
exports.browser = browser;
function isDev(args) {
    var req = args.req;
    var host = req.headers && req.headers.host && req.headers.host;
    return host && host.startsWith('localhost');
}
exports.isDev = isDev;
//# sourceMappingURL=document.js.map