import * as React from 'react'; import { useMemo } from 'react'; import { TinyColor } from '@ctrl/tinycolor'; import { useToken } from '../theme/internal'; const Simple: React.FC = () => { const [, token] = useToken(); const { colorFill, colorFillTertiary, colorFillQuaternary, colorBgContainer } = token; const { borderColor, shadowColor, contentColor } = useMemo( () => ({ borderColor: new TinyColor(colorFill).onBackground(colorBgContainer).toHexShortString(), shadowColor: new TinyColor(colorFillTertiary) .onBackground(colorBgContainer) .toHexShortString(), contentColor: new TinyColor(colorFillQuaternary) .onBackground(colorBgContainer) .toHexShortString(), }), [colorFill, colorFillTertiary, colorFillQuaternary, colorBgContainer], ); return ( Simple Empty ); }; if (process.env.NODE_ENV !== 'production') { Simple.displayName = 'SimpleImage'; } export default Simple;