import { BaseItemKind } from '@jellyfin/sdk/lib/generated-client'; import React, { FC } from 'react'; import Icon from '@mui/material/Icon'; import imageHelper from 'utils/image'; import DefaultName from './DefaultName'; import type { ItemDto } from 'types/itemDto'; interface DefaultIconTextProps { item: ItemDto; defaultCardImageIcon?: string; } const DefaultIconText: FC = ({ item, defaultCardImageIcon }) => { if (item.CollectionType) { return ( ); } if (item.Type && !(item.Type === BaseItemKind.TvChannel || item.Type === BaseItemKind.Studio )) { return ( ); } if (defaultCardImageIcon) { return ( ); } return ; }; export default DefaultIconText;