import React, { useContext } from "react" import BoxWordcloud from "../base/BoxWordcloud" import ContextLanguage from "../../contexts/ContextLanguage" import BoxFull from "../base/BoxFull" import Empty from "./Empty" import ContextRepositoryViewer from "../../contexts/ContextRepositoryViewer" import { FilterContains } from "../../utils/Filter" export default function BoxVisualizationWordcloud({ ...props }) { const { strings } = useContext(ContextLanguage) const { words, appendFilter } = useContext(ContextRepositoryViewer) if(words.length === 0) { return ( ) } const onWordClick = word => { appendFilter(new FilterContains(false, word.text)) } return ( ) }