@attio/react-native-bottom-sheet-toolbox
Version:
33 lines (32 loc) • 865 B
JavaScript
"use strict";
import { Platform, PlatformColor, StyleSheet, View } from "react-native";
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
const DEFAULT_DRAG_HANDLE_COLOR = Platform.select({
ios: Platform.OS === "web" ? "#EDEEEF" : PlatformColor("tertiaryLabel", "#EDEEEF"),
default: "#EDEEEF"
});
const styles = StyleSheet.create({
container: {
paddingTop: 8,
width: "100%"
},
dragHandle: {
alignSelf: "center",
backgroundColor: DEFAULT_DRAG_HANDLE_COLOR,
borderRadius: 2,
height: 4,
width: 40
}
});
export function BottomSheetToolboxDefaultHandle({
style,
children
}) {
return /*#__PURE__*/_jsxs(View, {
style: [styles.container, style],
children: [/*#__PURE__*/_jsx(View, {
style: styles.dragHandle
}), children]
});
}
//# sourceMappingURL=bottom-sheet-toolbox-default-handle.js.map