import React, { useEffect, useRef, useState } from 'react'; import Container from 'react-bootstrap/Container'; import { useFocusedElement } from '../FocusedElement'; export type Props = { title: string, icon?: string, tags: string[], style?: 'primary' | 'light' } function Tag(props: {text: string}) { const tagKey = 'tag_' + props.text; const {elementRef, focusedClass, focusElement} = useFocusedElement(tagKey) return ( {props.text} ) } export default function TagCloud(props: Props) { const containerClasses = ['tag-cloud', 'cloud-' + (props.style || 'standard')] return (

{props.icon && ( )}{props.title}

{props.tags.map((tag: string) => () )}
) }