import { Comic, ComicBubble, ComicPage } from '@prisma/client'; import Image from 'next/image'; import { percentify, randomColour } from '../src/utils'; interface Props { page: ComicPage & { bubbles: ComicBubble[]; comic: Comic; }; highlightedBubbles: number[] | null; } export default function HighlightComic(props: Props) { return (
{props.page.title}
{props.highlightedBubbles && props.highlightedBubbles.map((bubble) => { return (
); })}
); }