import React from "react"; import { StyleSheet, Text, View } from "react-native"; import { useSelector } from "react-redux"; const EmptyView = ({ icon, description, style, children, iconStyle }) => { const theme = useSelector((state) => state.settingsReducer.theme); return ( {icon} {description} {children} ); }; export default EmptyView; const styles = StyleSheet.create({ emptyViewContainer: { flex: 1, justifyContent: "center", alignItems: "center", }, emptyViewIcon: { fontSize: 45, }, emptyViewText: { fontWeight: "bold", marginTop: 10, textAlign: "center", paddingHorizontal: 30, }, });