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