import * as React from "react"; import * as DataModels from "../../Contracts/DataModels"; import { Card, ICardTokens, ICardSectionTokens } from "@uifabric/react-cards"; import { Icon, Image, Persona, Text } from "office-ui-fabric-react"; import { siteTextStyles, descriptionTextStyles, helpfulTextStyles, subtleHelpfulTextStyles, subtleIconStyles } from "./CardStyleConstants"; interface GalleryCardComponentProps { name: string; url: string; notebookMetadata: DataModels.NotebookMetadata; onClick: () => void; } export class GalleryCardComponent extends React.Component { private cardTokens: ICardTokens = { childrenMargin: 12 }; private attendantsCardSectionTokens: ICardSectionTokens = { childrenGap: 6 }; public render(): JSX.Element { return this.props.notebookMetadata != null ? ( Notebook display image {this.props.notebookMetadata.tags.join(", ")} {this.props.name} {this.props.notebookMetadata.description} {this.props.notebookMetadata.views} {this.props.notebookMetadata.downloads} {this.props.notebookMetadata.likes} ) : ( {this.props.name} ); } }