Skip to content
Source
Sign inSign up

SheetPane.tsx

16 lines466 Bytes

1import { View } from "react-native";
2​
3import type { SheetPaneProps } from "./SheetPane.types";
4export type { SheetPaneProps } from "./SheetPane.types";
5​
6/** The root of a pane or sheet that draws an AppBar above its ScreenContent. */
7export function SheetPane(props: SheetPaneProps) {
8 return (
9 <View
10 collapsable={false}
11 className={props.surface === "screen" ? "flex-1 bg-screen" : "flex-1 bg-sheet"}
12 >
13 {props.children}
14 </View>
15 );