import { UmbFileSystemTreeStore } from '@umbraco-cms/backoffice/tree';
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
import type { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller-api';

/**
 * @export
 * @class UmbStylesheetTreeStore
 * @extends {UmbEntityTreeStore}
 * @description - Tree Data Store for Stylesheets
 */
export class UmbStylesheetTreeStore extends UmbFileSystemTreeStore {
	/**
	 * Creates an instance of UmbStylesheetTreeStore.
	 * @param {UmbControllerHostElement} host
	 * @memberof UmbStylesheetTreeStore
	 */
	constructor(host: UmbControllerHostElement) {
		super(host, UMB_STYLESHEET_TREE_STORE_CONTEXT_TOKEN.toString());
	}
}

export const UMB_STYLESHEET_TREE_STORE_CONTEXT_TOKEN = new UmbContextToken<UmbStylesheetTreeStore>(
	'UmbStylesheetTreeStore',
);
