import React, { type FC } from 'react'; import layoutManager from 'components/layoutManager'; import CardOverlayButtons from './CardOverlayButtons'; import CardHoverMenu from './CardHoverMenu'; import CardOuterFooter from './CardOuterFooter'; import CardContent from './CardContent'; import { CardShape } from 'utils/card'; import type { ItemDto } from 'types/base/models/item-dto'; import type { CardOptions } from 'types/cardOptions'; interface CardBoxProps { action: string; item: ItemDto; cardOptions: CardOptions; className: string; shape: CardShape | undefined; imgUrl: string | undefined; blurhash: string | undefined; forceName: boolean; coveredImage: boolean; overlayText: boolean | undefined; } const CardBox: FC = ({ action, item, cardOptions, className, shape, imgUrl, blurhash, forceName, coveredImage, overlayText }) => { return (
{layoutManager.mobile && ( )} {layoutManager.desktop && !cardOptions.disableHoverMenu && ( )}
{!overlayText && ( )}
); }; export default CardBox;