import { TinyColor } from '@ctrl/tinycolor'; import * as React from 'react'; import { useToken } from '../theme/internal'; const Empty: React.FC = () => { const [, token] = useToken(); const bgColor = new TinyColor(token.colorBgBase); // Dark Theme need more dark of this const themeStyle: React.CSSProperties = bgColor.toHsl().l < 0.5 ? { opacity: 0.65 } : {}; return ( ); }; if (process.env.NODE_ENV !== 'production') { Empty.displayName = 'EmptyImage'; } export default Empty;