import React from "react"; import { Link } from "react-router-dom"; import yaml from "yaml"; import contentYaml from "../content/home-content.yml?raw"; import { HomeContent, HomeSection } from "../types/home-content"; import "../components/Button.css"; const content = yaml.parse(contentYaml) as HomeContent; const SectionCard: React.FC<{ section: HomeSection }> = ({ section }) => { if (section.external) { return (
); } return ({section.description}
{section.linkText}{content.description}