import type { Result } from "sarif";
import { AlertTable } from "../results/AlertTable";

type Props = {
  results: Result[];
  databaseUri: string;
  sourceLocationPrefix: string;
};

export const InterpretedCompareResultTable = ({
  results,
  databaseUri,
  sourceLocationPrefix,
}: Props) => {
  return (
    <AlertTable
      results={results}
      databaseUri={databaseUri}
      sourceLocationPrefix={sourceLocationPrefix}
      header={
        <thead>
          <tr>
            <th colSpan={2}></th>
            <th className={`vscode-codeql__alert-message-cell`} colSpan={3}>
              Message
            </th>
          </tr>
        </thead>
      }
    />
  );
};
