mirror of
https://github.com/papra-hq/papra.git
synced 2026-01-06 08:59:37 -06:00
16 lines
449 B
TypeScript
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} />;
|
|
}
|