Newer
Older
import React from "react";
import { Link } from "gatsby";
import { IGatsbyImageData } from "gatsby-plugin-image";
import CardList from "./core/CardList";
interface INew {
title?: string;
content?: string;
image?: string | IGatsbyImageData;
to?: string;
}
interface Props {
const News = (props: Props) => {
const {
title = '',
news = [],
anime = true,
action
} = props;
<h2 className="mt-2 text-3xl font-extrabold tracking-tight sm:text-4xl mb-8">{title}</h2>