/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ import React from "react"; import MarkdownRender from "./MarkdownRender"; import ShareButton from "./ShareButton"; type Props = { id: string; title: string; summary: string; file: File | undefined; summaryBelow: boolean; altText: string; scalePct: string; }; const ImageWidget = (props: Props) => { const { file, summaryBelow, summary, title, altText, scalePct } = props; return (