# Entitlement Graph Editor

## Installation

```bash
npm install https://cdn.cloud.peaksecurity.de/entitlement-graph-editor/0.0.10.tgz
```

## Usage

```tsx
import { ReactFlowProvider } from 'reactflow';
import EntitlementEditor from 'entitlement-graph-editor';
import 'reactflow/dist/style.css';

function App() {
  return (
    <ReactFlowProvider>
      <EntitlementEditor 
        initialData={entitlementData}
        repositories={myRepositories}
        onSave={handleSave}
        onBack={handleBack}
      />
    </ReactFlowProvider>
  );
}
```

## Props

- `initialData` - The entitlement object to edit
- `repositories` - Repository implementation for data fetching
- `onSave` - Called when user clicks Save
- `onSaveAndReturn` - Called when user clicks Save & Return
- `onBack` - Called when user clicks Back
