mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-17 07:59:41 +02:00
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>
34 lines
No EOL
1,023 B
TypeScript
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>
|
|
);
|
|
}; |