NeoScan_Physician/app/modules/Profile/screens/SettingsScreen.tsx
2025-07-21 18:47:22 +05:30

79 lines
2.2 KiB
TypeScript

/*
* File: SettingsScreen.tsx
* Description: Screen for user settings
* Design & Developed by Tech4Biz Solutions
* Copyright (c) Spurrin Innovations. All rights reserved.
*/
import React from 'react';
import { View, Text, StyleSheet, Switch } from 'react-native';
import { Card } from '../../../../shared/src/components/Card';
import { Colors, Spacing, Typography } from '../../../../shared/src/theme';
import { useSettings } from '../hooks/useSettings';
/**
* SettingsScreen - shows toggles for notifications/dark mode and language select (stub)
*/
const SettingsScreen: React.FC = () => {
const settings = useSettings();
return (
<View style={styles.container}>
<Card>
<Text style={styles.title}>Settings</Text>
<View style={styles.row}>
<Text style={styles.label}>Notifications</Text>
<Switch value={settings.notificationsEnabled} /* onValueChange={} */ />
</View>
<View style={styles.row}>
<Text style={styles.label}>Dark Mode</Text>
<Switch value={settings.darkMode} /* onValueChange={} */ />
</View>
<View style={styles.row}>
<Text style={styles.label}>Language</Text>
<Text style={styles.value}>{settings.language}</Text>
</View>
</Card>
</View>
);
};
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: Colors.background,
justifyContent: 'center',
padding: Spacing.lg,
},
title: {
fontFamily: Typography.fontFamily.bold,
fontSize: Typography.fontSize.lg,
color: Colors.primary,
marginBottom: Spacing.md,
textAlign: 'center',
},
row: {
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-between',
marginBottom: Spacing.md,
},
label: {
fontFamily: Typography.fontFamily.regular,
fontSize: Typography.fontSize.md,
color: Colors.textPrimary,
},
value: {
fontFamily: Typography.fontFamily.regular,
fontSize: Typography.fontSize.md,
color: Colors.textSecondary,
},
});
export default SettingsScreen;
/*
* End of File: SettingsScreen.tsx
* Design & Developed by Tech4Biz Solutions
* Copyright (c) Spurrin Innovations. All rights reserved.
*/