2020-10-30 16:15:58 +00:00
|
|
|
import React from 'react';
|
|
|
|
import { StyleSheet } from 'react-native';
|
|
|
|
|
|
|
|
import UnreadBadge from '../../presentation/UnreadBadge';
|
|
|
|
|
|
|
|
const styles = StyleSheet.create({
|
|
|
|
badgeContainer: {
|
|
|
|
padding: 2,
|
|
|
|
position: 'absolute',
|
|
|
|
right: -3,
|
|
|
|
top: -3,
|
|
|
|
borderRadius: 10,
|
|
|
|
alignItems: 'center',
|
|
|
|
justifyContent: 'center'
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2021-10-01 18:12:19 +00:00
|
|
|
export const Badge = ({ ...props }) => <UnreadBadge {...props} style={styles.badgeContainer} small />;
|
2020-10-30 16:15:58 +00:00
|
|
|
|
|
|
|
export default Badge;
|