o kısmı böyle yap
useEffect(() => { if (currentPostId) { fetch("https://jsonplaceholder.typicode.com/posts/" + currentPostId).then((res) => res.json()).then((post) => setPost(post)); } }, [currentPostId]);