import { useState } from 'react';
import { useToolbarCollectionContext } from '../ToolbarCollectionContext';
import { TagsCollectionState } from '../../state/TagsCollectionState';
import { manageTagsPageAction } from './manageTagsPageAction';
export const Tags = (props) => {
    const toolbarCollectionState = useToolbarCollectionContext();
    useState(() => {
        toolbarCollectionState.tagsCollectionState ??= new TagsCollectionState({
            toolbar: toolbarCollectionState,
            props,
            Tags,
            ...props,
        });
        return toolbarCollectionState.tagsCollectionState;
    });
    return null;
};
Tags.manageTagsPageAction = manageTagsPageAction;
//# sourceMappingURL=Tags.js.map