> ## Documentation Index
> Fetch the complete documentation index at: https://stratanote.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ChangeOwnerModalProps

[**API Reference**](/api-reference/index) / [**components/ChangeOwnerModal**](/api-reference/components/ChangeOwnerModal/index)

***

Defined in: [components/ChangeOwnerModal.tsx:21](https://github.com/cannoneer85-svg/stratanote/blob/master/_app/client/src/components/ChangeOwnerModal.tsx#L21)

Props for [ChangeOwnerModal](/api-reference/components/ChangeOwnerModal/variables/ChangeOwnerModal) component.

## Properties

### currentOwner

> **currentOwner**: `string`

Defined in: [components/ChangeOwnerModal.tsx:31](https://github.com/cannoneer85-svg/stratanote/blob/master/_app/client/src/components/ChangeOwnerModal.tsx#L31)

Current owner username of item

***

### isDirectory

> **isDirectory**: `boolean`

Defined in: [components/ChangeOwnerModal.tsx:33](https://github.com/cannoneer85-svg/stratanote/blob/master/_app/client/src/components/ChangeOwnerModal.tsx#L33)

Whether target item is a directory

***

### isOpen

> **isOpen**: `boolean`

Defined in: [components/ChangeOwnerModal.tsx:23](https://github.com/cannoneer85-svg/stratanote/blob/master/_app/client/src/components/ChangeOwnerModal.tsx#L23)

Controls modal visibility

***

### lang

> **lang**: [`Lang`](/api-reference/utils/translations/type-aliases/Lang)

Defined in: [components/ChangeOwnerModal.tsx:35](https://github.com/cannoneer85-svg/stratanote/blob/master/_app/client/src/components/ChangeOwnerModal.tsx#L35)

Interface language

***

### onClose

> **onClose**: () => `void`

Defined in: [components/ChangeOwnerModal.tsx:25](https://github.com/cannoneer85-svg/stratanote/blob/master/_app/client/src/components/ChangeOwnerModal.tsx#L25)

Callback triggered when modal is requested to close

#### Returns

`void`

***

### onOwnerChanged

> **onOwnerChanged**: (`relativePath`, `newOwner`, `recursive`) => `void`

Defined in: [components/ChangeOwnerModal.tsx:39](https://github.com/cannoneer85-svg/stratanote/blob/master/_app/client/src/components/ChangeOwnerModal.tsx#L39)

Callback executed when owner is successfully updated

#### Parameters

##### relativePath

`string`

##### newOwner

`string`

##### recursive

`boolean`

#### Returns

`void`

***

### relativePath

> **relativePath**: `string`

Defined in: [components/ChangeOwnerModal.tsx:27](https://github.com/cannoneer85-svg/stratanote/blob/master/_app/client/src/components/ChangeOwnerModal.tsx#L27)

Relative path of target note or directory

***

### title

> **title**: `string`

Defined in: [components/ChangeOwnerModal.tsx:29](https://github.com/cannoneer85-svg/stratanote/blob/master/_app/client/src/components/ChangeOwnerModal.tsx#L29)

Title or display name of target item

***

### token

> **token**: `string`

Defined in: [components/ChangeOwnerModal.tsx:37](https://github.com/cannoneer85-svg/stratanote/blob/master/_app/client/src/components/ChangeOwnerModal.tsx#L37)

Authentication JWT token
