Private
Public Access
1
0
Files
power-apps-codeapps-blog-part2/node_modules/@fluentui/react-image/lib/components/Image/Image.js

16 lines
660 B
JavaScript

'use client';
import * as React from 'react';
import { renderImage_unstable } from './renderImage';
import { useImage_unstable } from './useImage';
import { useImageStyles_unstable } from './useImageStyles.styles';
import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
/**
* The Image component ensures the consistent styling of images.
*/ export const Image = /*#__PURE__*/ React.forwardRef((props, ref)=>{
const state = useImage_unstable(props, ref);
useImageStyles_unstable(state);
useCustomStyleHook_unstable('useImageStyles_unstable')(state);
return renderImage_unstable(state);
});
Image.displayName = 'Image';