'use client'; import Link from 'next/link'; import Image from 'next/image'; import { FaTags, FaCalendarAlt } from 'react-icons/fa'; interface BlogPost { label: string; body: string; publish: string; get_absolute_url: string; tags: string[]; } interface BlogAreaProps { blogposts: BlogPost[]; } export default function BlogArea({ blogposts }: BlogAreaProps) { return (
{blogposts.map((blogpost, index) => (
Retrospective Science Image

{blogpost.label}

  • {blogpost.tags.map((tag, index) => (
  • {tag}
  • ))}
{blogpost.body.slice(0, 512)}...

{blogpost.publish}

Читать →
{index < blogposts.length - 1 && (
)}
))}
); }