Files
papra/apps/mobile/src/modules/ui/components/themed-view.tsx
2025-11-19 22:00:34 +01:00

16 lines
449 B
TypeScript

import type { ViewProps } from 'react-native';
import { View } from 'react-native';
import { useThemeColor } from '@/modules/ui/providers/use-theme-color';
export type ThemedViewProps = ViewProps & {
lightColor?: string;
darkColor?: string;
};
export function ThemedView({ style, ...otherProps }: ThemedViewProps) {
const theme = useThemeColor();
return <View style={[{ backgroundColor: theme.background }, style]} {...otherProps} />;
}