import { Localized } from "fluent-react/compat"; import React, { MouseEvent, StatelessComponent } from "react"; import { PropTypesOf } from "talk-framework/types"; import { Button, Typography } from "talk-ui/components"; import CommentContainer from "../containers/CommentContainer"; import * as styles from "./PermalinkView.css"; export interface PermalinkViewProps { me: PropTypesOf["me"]; asset: PropTypesOf["asset"]; comment: PropTypesOf["comment"] | null; showAllCommentsHref: string | null; onShowAllComments: (e: MouseEvent) => void; } const PermalinkView: StatelessComponent = ({ showAllCommentsHref, comment, asset, onShowAllComments, me, }) => { return (
{showAllCommentsHref && ( )} {!comment && ( Comment not found )} {comment && }
); }; export default PermalinkView;