75 lines
1.6 KiB
TypeScript
75 lines
1.6 KiB
TypeScript
import { StyleSheet } from 'react-native';
|
|
import { ThemeColors } from '../../theme';
|
|
|
|
export const getStyles = (colors: ThemeColors) =>
|
|
StyleSheet.create({
|
|
card: {
|
|
backgroundColor: colors.card,
|
|
borderRadius: 12,
|
|
padding: 16,
|
|
marginBottom: 12,
|
|
flexDirection: 'row',
|
|
alignItems: 'center',
|
|
shadowColor: '#000',
|
|
shadowOffset: { width: 0, height: 2 },
|
|
shadowOpacity: 0.05,
|
|
shadowRadius: 4,
|
|
elevation: 2,
|
|
},
|
|
avatarContainer: {
|
|
width: 56,
|
|
height: 56,
|
|
borderRadius: 28,
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
marginRight: 12,
|
|
},
|
|
avatarText: {
|
|
fontSize: 20,
|
|
fontWeight: '700',
|
|
color: '#FFFFFF',
|
|
},
|
|
contentContainer: {
|
|
flex: 1,
|
|
},
|
|
headerRow: {
|
|
flexDirection: 'row',
|
|
justifyContent: 'space-between',
|
|
alignItems: 'center',
|
|
marginBottom: 8,
|
|
},
|
|
name: {
|
|
fontSize: 16,
|
|
fontWeight: '700',
|
|
color: colors.text,
|
|
flex: 1,
|
|
marginRight: 8,
|
|
},
|
|
statusBadge: {
|
|
paddingHorizontal: 10,
|
|
paddingVertical: 4,
|
|
borderRadius: 12,
|
|
flexShrink: 0,
|
|
},
|
|
statusText: {
|
|
fontSize: 11,
|
|
fontWeight: '600',
|
|
textTransform: 'capitalize',
|
|
},
|
|
contactRow: {
|
|
flexDirection: 'row',
|
|
alignItems: 'center',
|
|
justifyContent: 'space-between',
|
|
marginBottom: 6,
|
|
},
|
|
contactText: {
|
|
fontSize: 13,
|
|
color: colors.textSecondary,
|
|
flex: 1,
|
|
marginRight: 8,
|
|
},
|
|
contactIconButton: {
|
|
padding: 4,
|
|
},
|
|
});
|