import {BaseElement} from "../../base/element.js" import {Attributes, attributes} from "../../base/addons/attributes.js" export type SetupAttrs = ( (spec: A) => Attributes.SoftenSpec ) export function setup_use_attrs(element: BaseElement) { let attrs: undefined | Attributes.SoftenSpec return function(spec: A): Attributes.SoftenSpec { if (!attrs) attrs = attributes(element, spec) return attrs } }