100 lines
2.4 KiB
TypeScript
100 lines
2.4 KiB
TypeScript
import { StyleSheet } from 'react-native';
|
|
import { typography, spacing, borderRadius, shadow } from '@theme';
|
|
|
|
export const getStyles = (colors: any) =>
|
|
StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
backgroundColor: 'rgba(0, 0, 0, 0.65)',
|
|
justifyContent: 'flex-end',
|
|
},
|
|
modalContent: {
|
|
backgroundColor: colors.cardBg,
|
|
borderTopLeftRadius: borderRadius.xl,
|
|
borderTopRightRadius: borderRadius.xl,
|
|
padding: spacing.xl,
|
|
paddingBottom: spacing.huge,
|
|
...shadow.lg,
|
|
},
|
|
headerRow: {
|
|
flexDirection: 'row',
|
|
alignItems: 'center',
|
|
justifyContent: 'space-between',
|
|
marginBottom: spacing.lg,
|
|
},
|
|
modalTitle: {
|
|
fontSize: typography.fontSize.lg,
|
|
fontWeight: typography.fontWeight.bold,
|
|
color: colors.text,
|
|
},
|
|
timerContainer: {
|
|
width: 44,
|
|
height: 44,
|
|
borderRadius: 22,
|
|
borderWidth: 3,
|
|
borderColor: colors.primary,
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
backgroundColor: colors.primaryLight,
|
|
},
|
|
timerText: {
|
|
fontSize: typography.fontSize.sm,
|
|
fontWeight: typography.fontWeight.bold,
|
|
color: colors.primary,
|
|
},
|
|
routeContainer: {
|
|
backgroundColor: colors.inputBg,
|
|
borderRadius: borderRadius.md,
|
|
padding: spacing.md,
|
|
marginBottom: spacing.lg,
|
|
borderWidth: 1,
|
|
borderColor: colors.border,
|
|
},
|
|
spacer: {
|
|
height: spacing.md,
|
|
},
|
|
detailsRow: {
|
|
flexDirection: 'row',
|
|
justifyContent: 'space-between',
|
|
marginBottom: spacing.xl,
|
|
backgroundColor: colors.inputBg,
|
|
padding: spacing.md,
|
|
borderRadius: borderRadius.md,
|
|
borderWidth: 1,
|
|
borderColor: colors.border,
|
|
},
|
|
detailBox: {
|
|
flex: 1,
|
|
alignItems: 'center',
|
|
},
|
|
detailLabel: {
|
|
fontSize: 10,
|
|
color: colors.textSecondary,
|
|
fontWeight: 'bold',
|
|
textTransform: 'uppercase',
|
|
marginBottom: 4,
|
|
},
|
|
detailValue: {
|
|
fontSize: typography.fontSize.lg,
|
|
fontWeight: typography.fontWeight.bold,
|
|
color: colors.text,
|
|
},
|
|
divider: {
|
|
width: 1,
|
|
height: 28,
|
|
backgroundColor: colors.border,
|
|
},
|
|
btnRow: {
|
|
flexDirection: 'row',
|
|
gap: 12,
|
|
},
|
|
rejectBtn: {
|
|
flex: 1,
|
|
backgroundColor: colors.border,
|
|
},
|
|
acceptBtn: {
|
|
flex: 2,
|
|
backgroundColor: colors.primary,
|
|
},
|
|
});
|