Files
medusa-store/packages/admin-ui/ui/src/components/molecules/notification-bell/index.tsx
T
2023-03-13 14:02:20 +01:00

22 lines
591 B
TypeScript

import React from "react"
import Button, { ButtonProps } from "../../fundamentals/button"
import BellIcon from "../../fundamentals/icons/bell-icon"
import BellNotiIcon from "../../fundamentals/icons/bell-noti-icon"
type NotificationBellProps = ButtonProps & {
hasNotifications?: boolean
}
const NotificationBell: React.FC<NotificationBellProps> = ({
hasNotifications = false,
...attributes
}) => {
return (
<Button className="h-8 w-8" size="small" {...attributes}>
{hasNotifications ? <BellNotiIcon /> : <BellIcon />}
</Button>
)
}
export default NotificationBell