import * as React from 'react'; import { useMemo } from 'react'; import { TinyColor } from '@ctrl/tinycolor'; import { useToken } from '../theme/internal'; const Simple = () => { const [, token] = useToken(); const { colorFill, colorFillTertiary, colorFillQuaternary, colorBgContainer } = token; const { borderColor, shadowColor, contentColor } = useMemo( () => ({ borderColor: new TinyColor(colorFill).onBackground(colorBgContainer).toHexString(), shadowColor: new TinyColor(colorFillTertiary).onBackground(colorBgContainer).toHexString(), contentColor: new TinyColor(colorFillQuaternary).onBackground(colorBgContainer).toHexString(), }), [colorFill, colorFillTertiary, colorFillQuaternary, colorBgContainer], ); return ( ); }; export default Simple;