Outlook_Addin_LLM/node_modules/@fluentui/react-jsx-runtime/lib/utils/createCompatSlotComponent.js

12 lines
360 B
JavaScript
Raw Normal View History

import * as React from 'react';
import { SLOT_ELEMENT_TYPE_SYMBOL } from '@fluentui/react-utilities';
// TODO:
// this is for backwards compatibility with getSlotsNext
// it should be removed once getSlotsNext is obsolete
export function createCompatSlotComponent(type, props) {
return {
...props,
[SLOT_ELEMENT_TYPE_SYMBOL]: type
};
}