diff --git a/src/components/settings/components/SettingsHeader.tsx b/src/components/settings/components/SettingsHeader.tsx index 00040d42c..3a280832f 100644 --- a/src/components/settings/components/SettingsHeader.tsx +++ b/src/components/settings/components/SettingsHeader.tsx @@ -2,18 +2,41 @@ import { useSettingsNavigation } from '../hooks/useSettingsNavigation'; interface SettingsHeaderProps { className?: string; + title?: string; + showBackButton?: boolean; + onBack?: () => void; } -const SettingsHeader = ({ className = '' }: SettingsHeaderProps) => { +const SettingsHeader = ({ + className = '', + title = 'Settings', + showBackButton = false, + onBack +}: SettingsHeaderProps) => { const { closeSettings } = useSettingsNavigation(); return (
- {/* Settings title */} -

- Settings -

+
+ {/* Back button */} + {showBackButton && onBack && ( + + )} + + {/* Title */} +

+ {title} +

+
{/* Close button */} - )} -
+ {/* Action button for active connections */} + {!option.comingSoon && isConnected && ( + + Connected + + )} + + {/* Action button for non-connected */} + {!option.comingSoon && !isConnected && ( + + Connect + + )} +
+ + ); + })} + + + {/* Security notice */} +
+
+ + + +
+

🔒 Privacy & Security

+

+ All data and credentials are stored locally with zero-data retention policy. + Your information is encrypted and never shared with third parties. +

- ); - })} -
- - {/* Security notice */} -
-
- - - -
-

🔒 Privacy & Security

-

- All data and credentials are stored locally with zero-data retention policy. - Your information is encrypted and never shared with third parties. -

- + {/* Telegram Connection Modal */}