mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-16 19:57:52 +01:00
26 lines
657 B
JavaScript
26 lines
657 B
JavaScript
import React from "react";
|
|
import { View } from "react-native";
|
|
import { useThemeStore } from "../../stores/use-theme-store";
|
|
import { DDS } from "../../services/device-detection";
|
|
import { getElevation } from "../../utils";
|
|
|
|
const DialogContainer = ({ width, height, ...restProps }) => {
|
|
const colors = useThemeStore((state) => state.colors);
|
|
|
|
return (
|
|
<View
|
|
{...restProps}
|
|
style={{
|
|
...getElevation(5),
|
|
width: width || DDS.isTab ? 500 : "85%",
|
|
maxHeight: height || 450,
|
|
borderRadius: 10,
|
|
backgroundColor: colors.bg,
|
|
paddingTop: 12
|
|
}}
|
|
/>
|
|
);
|
|
};
|
|
|
|
export default DialogContainer;
|