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.children}
); } } const imageRoot = '/png/'; export function textInput(params: any) { let {field,sh,defaultText} = params; return ( ); } export function selectInput(params: any) { let {field,sh,defaultText,options,langSelOpts} = params; let staticOpts = options; let fieldOpts = _.get(langSelOpts, field, []); let selOpts = staticOpts ? staticOpts : fieldOpts; return ( ); } export function imagePreview(params: any) { let {field,defaultText} = params; let imageSrc = imageRoot + defaultText; return ( ); }