import * as React from 'react'; import { getIntrinsicElementProps, slot } from '@fluentui/react-utilities'; /** * Create the state required to render DialogBody. * * The returned state can be modified with hooks such as useDialogBodyStyles_unstable, * before being passed to renderDialogBody_unstable. * * @param props - props from this instance of DialogBody * @param ref - reference to root HTMLElement of DialogBody */ export const useDialogBody_unstable = (props, ref)=>{ var _props_as; return { components: { root: 'div' }, root: slot.always(getIntrinsicElementProps((_props_as = props.as) !== null && _props_as !== void 0 ? _props_as : 'div', { // FIXME: // `ref` is wrongly assigned to be `HTMLElement` instead of `HTMLDivElement` // but since it would be a breaking change to fix it, we are casting ref to it's proper type ref: ref, ...props }), { elementType: 'div' }) }; };