import React from "react"; import { View, Text, Pressable } from "react-native"; import { connect } from "react-redux"; import { useNavigation } from "@react-navigation/native"; //components import CustomPressable from "../../../components/Pressable"; //style import tw from "tailwind-rn"; import fontSize from "../../../constants/fontSize"; import Colors from "../../../constants/Colors"; export const Header = ({ title, theme }) => { const navigation = useNavigation(); return ( {title} navigation.push("MoreBlog")} style={[ tw("py-3 px-1.5"), { backgroundColor: Colors.theme1.grayE3 + (theme === "light" ? "" : "55"), }, ]} > مشاهده بیشتر ); }; const mapStateToProps = (state) => ({ theme: state.publicApi.theme, }); const mapDispatchToProps = {}; export default connect(mapStateToProps, mapDispatchToProps)(Header);