import * as React from 'react'; import { useMemo } from 'react'; import { FastColor } from '@ant-design/fast-color'; import { useToken } from '../theme/internal'; import { useLocale } from '../locale'; const Simple: React.FC = () => { const [, token] = useToken(); const [locale] = useLocale('Empty'); const { colorFill, colorFillTertiary, colorFillQuaternary, colorBgContainer } = token; const { borderColor, shadowColor, contentColor } = useMemo( () => ({ borderColor: new FastColor(colorFill).onBackground(colorBgContainer).toHexString(), shadowColor: new FastColor(colorFillTertiary).onBackground(colorBgContainer).toHexString(), contentColor: new FastColor(colorFillQuaternary).onBackground(colorBgContainer).toHexString(), }), [colorFill, colorFillTertiary, colorFillQuaternary, colorBgContainer], ); return ( {locale?.description || 'Empty'} ); }; if (process.env.NODE_ENV !== 'production') { Simple.displayName = 'SimpleImage'; } export default Simple;