components/blog-post-square-preview/blog-post-square-preview.tsx
Function BlogPostSquarePreview
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function BlogPostSquarePreview(props: BlogPostPreviewProps) {
const { heading, slug, classNames } = props;
const { data } = useSWR<Views>(`/api/views/${slug}`, fetcher);
const views = data?.total;