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 { comment: PropTypesOf["data"] | null; showAllCommentsHref: string | null; onShowAllComments: (e: MouseEvent) => void; } const PermalinkView: StatelessComponent = ({ showAllCommentsHref, comment, onShowAllComments, }) => { return (
{showAllCommentsHref && ( )} {!comment && ( Comment not found )} {comment && }
); }; export default PermalinkView;