import React from "react"; import { abbreviateLongString } from "../../lib/displayHelpers"; import CopyAndPaste from "./CopyAndPaste"; interface Props { hash: string; abbreviate?: boolean; } const HashView = (props: Props) => (
{props.abbreviate ? abbreviateLongString(props.hash) : props.hash}
); export default HashView;