managarten/manadeck/apps/mobile/components/ui/SettingsSection.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

34 lines
No EOL
1,023 B
TypeScript

import React from 'react';
import { View } from 'react-native';
import { Text } from './Text';
import { Card } from './Card';
import { useThemeColors } from '~/utils/themeUtils';
import { spacing } from '~/utils/spacing';
interface SettingsSectionProps {
title: string;
children: React.ReactNode;
noPadding?: boolean;
}
export const SettingsSection: React.FC<SettingsSectionProps> = ({ title, children, noPadding = false }) => {
const colors = useThemeColors();
return (
<Card padding="none" variant="elevated" style={{ marginBottom: spacing.section }}>
<View
style={{
borderBottomWidth: noPadding ? 0 : 1,
borderBottomColor: colors.border,
paddingHorizontal: spacing.lg,
paddingTop: spacing.content.small,
paddingBottom: noPadding ? 0 : spacing.content.small,
}}>
<Text style={{ fontSize: 18, fontWeight: '600', color: colors.foreground }}>
{title}
</Text>
</View>
{children}
</Card>
);
};