import React, { StatelessComponent } from "react"; import { Button, Flex, Typography } from "talk-ui/components"; import CommentContainer from "../containers/CommentContainer"; import * as styles from "./PermalinkView.css"; export interface PermalinkViewProps { comment: {} | null; assetURL: string | null; onShowAllComments: () => void; } const PermalinkView: StatelessComponent = ({ assetURL, comment, onShowAllComments, }) => { return (
{assetURL && ( )} {!comment && Comment not found} {comment && ( )}
); }; export default PermalinkView;