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