import * as React from "react"; import { Trans } from "react-i18next"; import { UnfurlResourceType, UnfurlResponse } from "@shared/types"; import Flex from "~/components/Flex"; import Avatar from "../Avatar"; import { PullRequestIcon } from "../Icons/PullRequestIcon"; import Text from "../Text"; import Time from "../Time"; import { Preview, Title, Description, Card, CardContent, Info, } from "./Components"; type Props = Omit; const HoverPreviewPullRequest = React.forwardRef( function _HoverPreviewPullRequest( { url, title, id, description, author, state, createdAt }: Props, ref: React.Ref ) { const authorName = author.name; return ( <PullRequestIcon status={state.name} color={state.color} /> <span> {title} <Text type="tertiary">{id}</Text> </span> {{ authorName }} opened{" "} {description} ); } ); export default HoverPreviewPullRequest;