27 lines
646 B
TypeScript
27 lines
646 B
TypeScript
import { HttpTypes } from "@medusajs/types"
|
|
import { Text } from "@modules/common/components/ui"
|
|
|
|
type LineItemOptionsProps = {
|
|
variant: HttpTypes.StoreProductVariant | undefined
|
|
"data-testid"?: string
|
|
"data-value"?: HttpTypes.StoreProductVariant
|
|
}
|
|
|
|
const LineItemOptions = ({
|
|
variant,
|
|
"data-testid": dataTestid,
|
|
"data-value": dataValue,
|
|
}: LineItemOptionsProps) => {
|
|
return (
|
|
<Text
|
|
data-testid={dataTestid}
|
|
data-value={dataValue}
|
|
className="inline-block txt-medium text-ui-fg-subtle w-full overflow-hidden text-ellipsis"
|
|
>
|
|
Variant: {variant?.title}
|
|
</Text>
|
|
)
|
|
}
|
|
|
|
export default LineItemOptions
|