import React, {FC, PropsWithChildren} from "react"; import {CardItemSecondaryValue} from "../CardItemSecondaryValue"; import {__} from "../../globals"; import {renderCurrencyValue} from "../fields/helpers"; import {Color} from "../Color"; import classNames from "classnames"; import {OfferData} from "../store"; import {getCardComponentData} from "../cards"; import {withDecodedEntities} from "../../helpers"; export type OfferCardContentProps = { color: Color, offer: OfferData, title?: string } export const OfferCardContent: FC = ({color, offer, children, title}) => { const cardData = getCardComponentData('offer', offer.type) return
color.text(20) }}>{title || withDecodedEntities(cardData).name}
{children}
}