import React from 'react';
import PropTypes from 'prop-types';
import { useItem } from '../../utils/hooks/';
import { PositiveIntegerOrZero } from '../../utils/helpers/';
import { TaxonomyItemMediaCount, itemClassname } from './includes/items/';
import { Item } from './Item';
export function TaxonomyItem(props) {
const type = props.type;
const { titleComponent, descriptionComponent, thumbnailUrl, UnderThumbWrapper } = useItem({ ...props, type });
function thumbnailComponent() {
const attr = {
key: 'item-thumb',
href: props.link,
title: props.title,
tabIndex: '-1',
'aria-hidden': true,
className: 'item-thumb' + (!thumbnailUrl ? ' no-thumb' : ''),
style: !thumbnailUrl ? null : { backgroundImage: "url('" + thumbnailUrl + "')" },
};
return ;
}
function metaComponents() {
return props.hideAllMeta ? null : (
{