addons/isl/src/comments/InlineCommentComparisonView.tsxblame
View source
b69ab311/**
b69ab312 * Copyright (c) Meta Platforms, Inc. and affiliates.
b69ab313 *
b69ab314 * This source code is licensed under the MIT license found in the
b69ab315 * LICENSE file in the root directory of this source tree.
b69ab316 */
b69ab317
b69ab318import type {Context} from 'isl/src/ComparisonView/SplitDiffView/types';
b69ab319import type {ParsedDiff} from 'shared/patch/types';
b69ab3110
b69ab3111import {SplitDiffTable} from 'isl/src/ComparisonView/SplitDiffView/SplitDiffHunk';
b69ab3112
b69ab3113export default function InlineCommentComparisonView({
b69ab3114 ctx,
b69ab3115 path,
b69ab3116 suggestion,
b69ab3117}: {
b69ab3118 ctx: Context;
b69ab3119 path: string;
b69ab3120 suggestion: ParsedDiff;
b69ab3121}) {
b69ab3122 return (
b69ab3123 <div className="split-diff-view">
b69ab3124 <SplitDiffTable ctx={ctx} path={path} patch={suggestion} />
b69ab3125 </div>
b69ab3126 );
b69ab3127}