import React from 'react'; import './low_inventory_msg.scss'; interface Props { itemAvailable: boolean; hasInventory: boolean; sizeType: string; selectedSize: string; inventoryCount: number; } export const LowInventoryMsg: React.FC = ({ itemAvailable, hasInventory, inventoryCount }) => { return ( inventoryCount > 0 && inventoryCount <= 3 && (
{itemAvailable && hasInventory && 'Only ' + inventoryCount + ' Left'}
) ); };