feat: enhance news detail page with dynamic data loading and social sharing functionality

This commit is contained in:
fredy.siswanto
2025-03-08 00:14:30 +07:00
parent ee209b6ceb
commit 50fdd6bc02
4 changed files with 55 additions and 14 deletions
+2
View File
@@ -11,6 +11,8 @@ type TParameters = {
slug: string
} & THttpServer
export type TNewDetailResponse = z.infer<typeof dataResponseSchema>
export const getNewsBySlug = async (parameters: TParameters) => {
const { slug, accessToken } = parameters
try {