25 lines
424 B
TypeScript
25 lines
424 B
TypeScript
import { ReactNode } from "react";
|
|
import { StyleSheet, View } from "react-native";
|
|
|
|
interface PanelProps {
|
|
children?: ReactNode;
|
|
}
|
|
|
|
const Panel = ({children}: PanelProps) => {
|
|
return (
|
|
<View style={styles.panel}>
|
|
{children}
|
|
</View>
|
|
)
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
panel: {
|
|
padding: 15,
|
|
borderRadius: 5,
|
|
boxShadow: '0px 4px 5px 0px rgba(0,0,0,0.18)'
|
|
},
|
|
});
|
|
|
|
|
|
export default Panel; |