2020-10-30 16:15:58 +00:00
|
|
|
import React from 'react';
|
2023-02-14 13:47:56 +00:00
|
|
|
import { StyleSheet, View } from 'react-native';
|
2020-10-30 16:15:58 +00:00
|
|
|
|
2023-02-14 13:47:56 +00:00
|
|
|
import { STATUS_COLORS } from '../../lib/constants';
|
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',
|
2022-07-06 13:23:02 +00:00
|
|
|
right: 2,
|
|
|
|
top: 2,
|
2020-10-30 16:15:58 +00:00
|
|
|
borderRadius: 10,
|
|
|
|
alignItems: 'center',
|
|
|
|
justifyContent: 'center'
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2023-02-14 13:47:56 +00:00
|
|
|
export const BadgeUnread = ({ ...props }): React.ReactElement => <UnreadBadge {...props} style={styles.badgeContainer} small />;
|
2020-10-30 16:15:58 +00:00
|
|
|
|
2023-02-14 13:47:56 +00:00
|
|
|
export const BadgeWarn = (): React.ReactElement => (
|
|
|
|
<View style={[styles.badgeContainer, { width: 10, height: 10, backgroundColor: STATUS_COLORS.disabled }]} />
|
|
|
|
);
|