import type { HTMLAttributes } from 'react'
import React, { forwardRef } from 'react'
import { Price, Badge } from '../../'
import type { PriceDefinition } from '../../typings/PriceDefinition'
export interface GiftContentProps extends HTMLAttributes {
/**
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
*/
testId?: string
/**
* Specifies the product's name.
*/
productName: string
/**
* Specifies product's prices.
*/
price: PriceDefinition
/**
* Badge's label
*/
badgeLabel?: string
/**
* Additional message in the title
*/
titleMessage?: string
}
const GiftContent = forwardRef(
function GiftContent(
{
price,
productName,
titleMessage = 'Get a',
badgeLabel = 'Free',
testId = 'fs-gift-content',
...otherProps
},
ref
) {
return (
{titleMessage} {productName}
{badgeLabel}
)
}
)
export default GiftContent