// TODO: [P2] This component can be replaced by `bindProps`. import { validateProps } from '@msinternal/botframework-webchat-react-valibot'; import { useStyleOptions } from 'botframework-webchat/hook.js'; import { InjectStyleElements } from 'botframework-webchat/internal.js'; import React, { memo, type FunctionComponent } from 'react'; import { never, object, optional, pipe, readonly, string, undefinedable, type InferInput } from 'valibot'; import createFluentThemeStyleElements from './createFluentThemeStyleElements'; const fluentThemeStylesheetPropsSchema = pipe( object({ children: optional(never()), nonce: undefinedable(string()) }), readonly() ); type FluentThemeStylesheetProps = InferInput; const styleElements = createFluentThemeStyleElements('fluent-theme'); function FluentThemeStylesheet(props: FluentThemeStylesheetProps) { const { nonce } = validateProps(fluentThemeStylesheetPropsSchema, props); const [{ stylesRoot }] = useStyleOptions(); return ; } FluentThemeStylesheet.displayName = 'FluentThemeStylesheet'; export default memo(FluentThemeStylesheet as FunctionComponent); export { fluentThemeStylesheetPropsSchema, type FluentThemeStylesheetProps };