mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-19 02:41:23 +02:00
Restructure standalone traces app into monorepo pattern with mobile + backend + shared types. Add NestJS backend with Drizzle ORM schema for locations, cities, places, POIs, and AI guides. Add mobile sync layer, cities tab, and guide generation UI. Fix pre-existing type errors across mobile codebase, matrix-mana-bot (sendDirectMessage), llm-playground, and all web auth stores (signUp call signature). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
21 lines
505 B
TypeScript
21 lines
505 B
TypeScript
import { View } from 'react-native';
|
|
|
|
import { useTheme } from '../utils/themeContext';
|
|
|
|
type ThemeWrapperProps = {
|
|
children: React.ReactNode;
|
|
className?: string;
|
|
};
|
|
|
|
export const ThemeWrapper: React.FC<ThemeWrapperProps> = ({ children, className = '' }) => {
|
|
const { isDarkMode } = useTheme();
|
|
|
|
// Apply dark mode class when isDarkMode is true
|
|
return (
|
|
<View
|
|
className={`${isDarkMode ? 'dark bg-background-dark' : 'bg-background-light'} flex-1 ${className}`}
|
|
>
|
|
{children}
|
|
</View>
|
|
);
|
|
};
|