You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
469 B

  1. import React, { FC } from "react";
  2. export interface SaleOffBadgeProps {
  3. className?: string;
  4. desc?: string;
  5. }
  6. const SaleOffBadge: FC<SaleOffBadgeProps> = ({
  7. className = "",
  8. desc = "-10% today",
  9. }) => {
  10. return (
  11. <div
  12. className={`nc-SaleOffBadge flex items-center justify-center text-xs py-0.5 px-3 bg-red-700 text-red-50 rounded-full ${className}`}
  13. data-nc-id="SaleOffBadge"
  14. >
  15. {desc}
  16. </div>
  17. );
  18. };
  19. export default SaleOffBadge;