686 B28 lines
Blame
1/**
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8import type {Context} from 'isl/src/ComparisonView/SplitDiffView/types';
9import type {ParsedDiff} from 'shared/patch/types';
10
11import {SplitDiffTable} from 'isl/src/ComparisonView/SplitDiffView/SplitDiffHunk';
12
13export default function InlineCommentComparisonView({
14 ctx,
15 path,
16 suggestion,
17}: {
18 ctx: Context;
19 path: string;
20 suggestion: ParsedDiff;
21}) {
22 return (
23 <div className="split-diff-view">
24 <SplitDiffTable ctx={ctx} path={path} patch={suggestion} />
25 </div>
26 );
27}
28