import { FeaturedBlock as FeaturedBlockType } from "@/gql/graphql"; import Link from "next/link"; import { Image } from "@/components/general/Image"; import styles from "./featuredBlock.module.scss"; // the 'text' field has been aliased to 'featuredBlockText' and i'm // using codegen the wrong way. let's specify the field here and move on type FeaturedBlockTypeWithAlias = FeaturedBlockType & { featuredBlockText: string; }; export const FeaturedBlock = ({ block, }: { block: FeaturedBlockTypeWithAlias; }) => { const image = !!block.featuredImageOverride ? block.featuredImageOverride : null; // TODO: fetch image from target page return (