superdesk/superdesk-client-core

View on GitHub
scripts/apps/search/components/fields/wordcount.ts

Summary

Maintainability
A
0 mins
Test Coverage
import React from 'react';
import {IPropsItemListInfo} from '../ListItemInfo';

class WordCountComponent extends React.Component<IPropsItemListInfo> {
    render() {
        const props = this.props;

        return React.createElement(
            'span',
            {className: 'word-count', key: 'wordcount'},
            props.item.word_count,
        );
    }
}

export const wordcount = WordCountComponent;