# Conflict Check

> A conflict-of-interest check before a firm takes on a matter: the parties to check, what was found in earlier matters (possible or real conflicts, with the reason) and the decision.

Component · CRM · Pro kit · [Live page](https://ui.twentyfirst.media/pro/components/ConflictCheck/)

A conflict-of-interest check before a firm takes on a matter: the parties to check, what was found
in earlier matters (possible or real conflicts, with the reason) and the decision.

- `onParties` makes the parties editable as tags; `onCheck` runs the check again.
- The result says it in words: "No conflicts found" or "1 conflict, 2 possible".
- `onDecide("cleared" | "declined")` records the decision, which then replaces the buttons.

## Example

```tsx
import * as React from "react";
import { ConflictCheck, Panel } from "@twentyfirstmedia/pro";
import { HITS } from "./_industry";

export default function Preview() {
  const [parties, setParties] = React.useState([
    "Lena Hartmann",
    "Elbe Logistik GmbH",
    "Kai Petersen",
  ]);
  const [decision, setDecision] = React.useState<"cleared" | "declined" | undefined>();
  return (
    <div
      className="tf-grid"
      style={
        {
          "--cols": "repeat(auto-fit, minmax(320px, 1fr))",
          gap: 16,
          alignItems: "start",
        } as React.CSSProperties
      }
    >
      <Panel title="New matter" subtitle="Hartmann ./. Elbe Logistik GmbH">
        <ConflictCheck
          parties={parties}
          onParties={setParties}
          hits={HITS}
          checkedAt={new Date(2026, 10, 16, 9, 30)}
          onCheck={() => {}}
          decision={decision}
          onDecide={setDecision}
        />
      </Panel>
      <Panel title="Another matter" subtitle="Velo Werk GmbH, contract review">
        <ConflictCheck
          parties={["Velo Werk GmbH", "Tobias Wendt"]}
          hits={[]}
          checkedAt={new Date(2026, 10, 15, 14, 5)}
          decision="cleared"
        />
      </Panel>
    </div>
  );
}
```

## Props

### ConflictCheck

| Prop | Type | Notes |
| --- | --- | --- |
| `parties` | `string[]` | The names to check: client, opposing party, related people and companies. |
| `onParties?` | `(parties: string[]) => void` | Makes the parties editable. |
| `hits` | `ConflictHit[]` | Required |
| `checkedAt?` | `Date \| string \| number` | When the check last ran; no result is shown before. |
| `onCheck?` | `() => void` | Shows "Run check". |
| `onDecide?` | `(decision: "cleared" \| "declined") => void` | Shows "Clear to proceed" and "Decline matter". |
| `decision?` | `"cleared" \| "declined"` |  |
| `className?` | `string` | Extra class on the root element. |
| `style?` | `CSSProperties` | Inline style on the root element. |

### Panel

| Prop | Type | Notes |
| --- | --- | --- |
| `side?` | `boolean` |  |
| `title?` | `string` |  |
| `subtitle?` | `string` |  |
| `action?` | `ReactNode` |  |
| `children?` | `ReactNode` |  |
| `surface?` | `Surface` | `"glass"`: translucent glass over what is behind (maps, 3D, video, photos); `"solid"` opts out inside a glass `UIProvider`. |
| `className?` | `string` | Extra class on the root element. |
| `style?` | `CSSProperties` | Inline style on the root element. |
