import clsx from 'clsx'; import { getBlog } from 'lib/shopify'; import Image from 'next/image'; import Link from 'next/link'; import { SupportedLocale } from './navbar/language-control'; export default async function StoriesPreview({ locale, handle, articles, more = false }: { locale?: SupportedLocale; handle: string; articles?: number; more?: boolean; }) { const blog = await getBlog({ handle: handle, articles: articles || 250, language: locale?.toUpperCase() }); if (!blog || !!blog?.articles) return null; return (

stories

{blog?.articles?.map((article, index) => (
{!!article?.image?.url && ( {article?.image?.altText )}
{article?.title}
{article?.excerpt}
))}
{more && (
more stories
)}
); }