Private
Public Access
1
0
Files

17 lines
808 B
JavaScript

'use client';
import * as React from 'react';
import { useDialogBody_unstable } from './useDialogBody';
import { renderDialogBody_unstable } from './renderDialogBody';
import { useDialogBodyStyles_unstable } from './useDialogBodyStyles.styles';
import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
/**
* The `DialogBody` is a container where the content of the dialog is rendered.
* Apart from styling, this component does not have other behavior.
*/ export const DialogBody = /*#__PURE__*/ React.forwardRef((props, ref)=>{
const state = useDialogBody_unstable(props, ref);
useDialogBodyStyles_unstable(state);
useCustomStyleHook_unstable('useDialogBodyStyles_unstable')(state);
return renderDialogBody_unstable(state);
});
DialogBody.displayName = 'DialogBody';