managarten/maerchenzauber/apps/mobile/components/settings/FunctionsSection.tsx
Till-JS e7f5f942f3 chore: initial commit - consolidate 4 projects into monorepo
Projects included:
- maerchenzauber (NestJS backend + Expo mobile + SvelteKit web + Astro landing)
- manacore (Expo mobile + SvelteKit web + Astro landing)
- manadeck (NestJS backend + Expo mobile + SvelteKit web)
- memoro (Expo mobile + SvelteKit web + Astro landing)

This commit preserves the current state before monorepo restructuring.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 23:38:24 +01:00

69 lines
1.5 KiB
TypeScript

import React from 'react';
import { View, StyleSheet } from 'react-native';
import { router } from 'expo-router';
import Button from '../atoms/Button';
interface FunctionsSectionProps {
onFeedbackPress: () => void;
isWideScreen?: boolean;
}
export default function FunctionsSection({ onFeedbackPress, isWideScreen = false }: FunctionsSectionProps) {
const buttonStyle = {
marginBottom: isWideScreen ? 12 : 8,
};
return (
<View style={styles.container}>
<Button
title="Archiv"
onPress={() => router.push('/archive')}
color="#333333"
variant="primary"
size="lg"
style={buttonStyle}
iconName="archive"
iconPosition="left"
/>
<Button
title="Hilfe"
onPress={() => router.push('/help')}
color="#333333"
variant="primary"
size="lg"
style={buttonStyle}
iconName="help-circle"
iconPosition="left"
/>
<Button
title="Feature Requests"
onPress={() => router.push('/feedback')}
color="#333333"
variant="primary"
size="lg"
style={buttonStyle}
iconName="thumbs-up"
iconPosition="left"
/>
<Button
title="Feedback geben"
onPress={onFeedbackPress}
color="#333333"
variant="primary"
size="lg"
style={buttonStyle}
iconName="chat"
iconPosition="left"
/>
</View>
);
}
const styles = StyleSheet.create({
container: {
marginBottom: 16,
},
});