import * as React from 'react'; import * as _ from 'lodash'; import { Label, Form } from 'semantic-ui-react'; const { Flex, Box } = require('reflexbox'); import { Input, Image } from 'semantic-ui-react'; class LexSingleInput extends React.Component { public render() { return (
{this.props.label} {this.props.children}
); } } function changedLabel(changed: boolean, text: string) { let labelClass = changed ? 'olive' : ''; return ( ); } const imageRoot = '/png/'; export function textInput(params: any) { let { field, sh, defaultText, changed } = params; return ( ); } export function selectInput(params: any) { let { field, sh, defaultText, options, langSelOpts, changed } = params; let staticOpts = options; let fieldOpts = _.get(langSelOpts, field, []); let selOpts = staticOpts ? staticOpts : fieldOpts; return ( ); } export function imagePreview(params: any) { let { field, defaultText, changed } = params; let imageSrc = imageRoot + defaultText; return ( ); }