feat: refactor article components to use searchParams for pagination and improve content loading
Some checks failed
Build and Test / run-test (20.x) (push) Failing after 1m52s
Some checks failed
Build and Test / run-test (20.x) (push) Failing after 1m52s
This commit is contained in:
@@ -6,13 +6,13 @@ import { Suspense } from 'react';
|
||||
import ReactMarkdown from 'react-markdown';
|
||||
import remarkGfm from 'remark-gfm';
|
||||
|
||||
interface ArticlePageProps {
|
||||
type ArticlePageProps = {
|
||||
params: Promise<{ slug: string }>;
|
||||
}
|
||||
};
|
||||
|
||||
interface ArticleContentProps {
|
||||
type ArticleContentProps = {
|
||||
params: Promise<{ slug: string }>;
|
||||
}
|
||||
};
|
||||
|
||||
function readingTime(text: string): number {
|
||||
const words = text.trim().split(/\s+/).length;
|
||||
|
||||
Reference in New Issue
Block a user