import Link from 'next/link'

export default function StoryPager({storydata}: {storydata: any}) {
console.log(storydata)
    return (
        <div>
        {storydata.data.map((story: any) => (
            <div key={story.slug}>
                <div className="episode_title">
                    <Link href="/news/[slug]" as={"/news/" + story.attributes.Slug}>{story.attributes.Title}</Link>
                </div>
                <div className="article_body" dangerouslySetInnerHTML={{ __html: story.attributes.Abstract }} />
            </div>
        ))}
        </div>

    )
}