// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved. // See License.txt for license information. import $ from 'jquery'; import * as Utils from 'utils/utils.jsx'; import Constants from 'utils/constants.jsx'; import React from 'react'; export default class PremadeThemeChooser extends React.Component { constructor(props) { super(props); this.state = {}; } render() { const theme = this.props.theme; const premadeThemes = []; for (const k in Constants.THEMES) { if (Constants.THEMES.hasOwnProperty(k)) { const premadeTheme = $.extend(true, {}, Constants.THEMES[k]); let activeClass = ''; if (premadeTheme.type === theme.type) { activeClass = 'active'; } premadeThemes.push(