mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-16 19:57:52 +01:00
22 lines
579 B
JavaScript
22 lines
579 B
JavaScript
import React from "react";
|
|
import { View } from "react-native";
|
|
import { useThemeStore } from "../../stores/use-theme-store";
|
|
import { useSelectionStore } from "../../stores/use-selection-store";
|
|
|
|
export const ContainerHeader = ({ children }) => {
|
|
const colors = useThemeStore((state) => state.colors);
|
|
const selectionMode = useSelectionStore((state) => state.selectionMode);
|
|
|
|
return !selectionMode ? (
|
|
<View
|
|
style={{
|
|
backgroundColor: colors.bg,
|
|
width: "100%",
|
|
overflow: "hidden"
|
|
}}
|
|
>
|
|
{children}
|
|
</View>
|
|
) : null;
|
|
};
|