export const getPostDetail = createAsyncThunk( 'getPostDetail', async (postId: string) => { const response = await getApi<IPost>(`/posts/${postId}`); return response.data; }, );