import React, { useMemo } from "react" import BoxFull from "../base/BoxFull" import ReactWordcloud from "@steffo/nest-react-wordcloud" import Style from "./BoxWordcloud.module.css" /** * A {@link BoxFull} which displays a wordcloud. * * @param words - A list of word objects, made of a string "text" and a number "value" * @param options - Additional options to pass to {@link ReactWordcloud}. * @param props - Additional props to pass to the box. * @returns {JSX.Element} * @constructor */ export default function BoxWordcloud({ words, callbacks = {}, ...props }) { const wordcloud = useMemo( () => ( ), [words] ) return (
{wordcloud}
) }