diff options
Diffstat (limited to 'frontend/src/components/NotificationBadge.tsx')
| -rw-r--r-- | frontend/src/components/NotificationBadge.tsx | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/frontend/src/components/NotificationBadge.tsx b/frontend/src/components/NotificationBadge.tsx new file mode 100644 index 00000000..3c5d8215 --- /dev/null +++ b/frontend/src/components/NotificationBadge.tsx @@ -0,0 +1,25 @@ +import { CSSProperties, FunctionComponent } from 'react'; + +interface NotificationBadgeProps { + show?: boolean; + style?: CSSProperties; +} + +const NotificationBadge: FunctionComponent<NotificationBadgeProps> = ({ show, style }) => { + return show ? ( + <div + style={{ + position: 'absolute', + top: '8px', + right: '8px', + height: '10px', + width: '10px', + background: 'orange', + borderRadius: '50%', + ...style, + }} + /> + ) : null; +}; + +export default NotificationBadge; |
