Files
2025-03-07 19:22:02 +01:00

15 lines
646 B
JavaScript

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';