import { UMB_MEDIA_TYPE_TREE_STORE_CONTEXT } from './media-type-tree.store.context-token.js';
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
import { UmbUniqueTreeStore } from '@umbraco-cms/backoffice/tree';

/**
 * @class UmbMediaTypeTreeStore
 * @augments {UmbStoreBase}
 * @description - Tree Data Store for Media Types
 * @deprecated - Use `UmbMediaTypeTreeRepository` instead. This will be removed in Umbraco 18.
 */
export class UmbMediaTypeTreeStore extends UmbUniqueTreeStore {
	/**
	 * Creates an instance of UmbMediaTypeTreeStore.
	 * @param {UmbControllerHost} host - The controller host for this controller to be appended to
	 * @memberof UmbMediaTypeTreeStore
	 */
	constructor(host: UmbControllerHost) {
		super(host, UMB_MEDIA_TYPE_TREE_STORE_CONTEXT.toString());
	}
}

export default UmbMediaTypeTreeStore;
