/**
* Wires up the standard detail page factory with titlebar and form state.
*/
import { autoInitStandardDetailPages } from '../core/app-detail-page-factory.js';
export function initStandardDetailPages(root = document) {
const apis = autoInitStandardDetailPages(root);
return {
destroy: () => {
apis.forEach((api) => {
if (api && typeof api.destroy === 'function') {
api.destroy();
}
});
},
};