import baseUrl from '@/baseUrl'; import { NewsModel } from '@/models/news.model'; import Image from 'next/image'; import Link from 'next/link'; interface IProps { news: NewsModel['data'][0]; } const News = ({ news }: IProps) => { return (
{news.featured_images && news.featured_images[0].path ? ( {news.slug ) : null}

{news.published_at}

{news.title}

); }; export default News;