Files
notesnook/apps/mobile/src/components/Container/ContainerTopSection.js

20 lines
425 B
JavaScript
Raw Normal View History

import React from 'react';
import { View } from 'react-native';
import { useTracked } from '../../provider';
2020-05-10 22:14:44 +05:00
2021-04-11 14:04:14 +05:00
export const ContainerTopSection = ({children}) => {
const [state] = useTracked();
2020-05-10 22:14:44 +05:00
const {colors, selectionMode} = state;
return !selectionMode && (
<View
2020-05-10 22:14:44 +05:00
style={{
backgroundColor: colors.bg,
width: '100%',
overflow: 'hidden',
2020-05-10 22:14:44 +05:00
}}>
2021-04-11 14:04:14 +05:00
{children}
</View>
2020-05-10 22:14:44 +05:00
);
};