Outlook_Addin_LLM/node_modules/@fluentui/react-utilities/lib/compose/isSlot.js

8 lines
354 B
JavaScript

import { SLOT_ELEMENT_TYPE_SYMBOL } from './constants';
/**
* Guard method to ensure a given element is a slot.
* This is mainly used internally to ensure a slot is being used as a component.
*/ export function isSlot(element) {
return Boolean(element === null || element === void 0 ? void 0 : element.hasOwnProperty(SLOT_ELEMENT_TYPE_SYMBOL));
}