"use strict";const i=require("vue"),t=require("./useSlotContents.js"),c=require("./useWarnOnce.cjs");function l(u,o,r){const n=i.computed(()=>{const s=t.useSlotContents(u);if(s.length!==1)return!1;const e=s[0];return!!(typeof e=="object"&&(t.isComponentVNode(e,"CdxIcon")||t.isTagVNode(e,"svg")))});return c(()=>n.value&&!o["aria-label"]&&!o["aria-hidden"],"".concat(r,": Icon-only buttons require one of the following attributes: aria-label or aria-hidden. See documentation at https://doc.wikimedia.org/codex/latest/components/demos/button.html#icon-only-button")),n}exports.useIconOnlyButton=l;
