import React from "react";
import { View, Pressable, Image, Dimensions, Text } from "react-native";
import { useNavigation } from "@react-navigation/native";
import tw from "tailwind-rn";
import fontSize from "../../../constants/fontSize";
const { width } = Dimensions.get("window");
import Header from "../../Home/components/Header";
const NewestVideo = ({ videos, grades }) => {
const navigation = useNavigation();
const Video = ({ video }) => {
return (
navigation.navigate("Video", { id: video.id })}
>
{video.name}
{"پایه" + " " + grades[video.gradeId]}
);
};
return (
{videos.map((video, index) => (
))}
);
};
export default NewestVideo;