// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved. // See License.txt for license information. var Constants = require('../../utils/constants.jsx'); export default class CodeThemeChooser extends React.Component { constructor(props) { super(props); this.state = {}; } render() { const theme = this.props.theme; const premadeThemes = []; for (const k in Constants.CODE_THEMES) { if (Constants.CODE_THEMES.hasOwnProperty(k)) { let activeClass = ''; if (k === theme.codeTheme) { activeClass = 'active'; } premadeThemes.push(