UNPKG

@kiwicom/orbit-components

Version:

Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com’s products.

23 lines (22 loc) 513 B
"use client"; import * as React from "react"; import Badge from "../Badge"; const NotificationBadge = ({ type, children, icon, ariaLabel, dataTest, id }) => { return /*#__PURE__*/React.createElement("div", { className: "[&_.orbit-badge-primitive]:w-icon-large [&_.orbit-badge-primitive]:p-0" }, /*#__PURE__*/React.createElement(Badge, { type: type, dataTest: dataTest, id: id, icon: icon, ariaLabel: ariaLabel }, !icon && children)); }; export default NotificationBadge;