import * as React from 'react'; import { TinyColor } from '@ctrl/tinycolor'; import { useLocale } from '../locale'; import { useToken } from '../theme/internal'; const Empty: React.FC = () => { const [, token] = useToken(); const [locale] = useLocale('Empty'); 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 ( {locale?.description || 'Empty'} ); }; if (process.env.NODE_ENV !== 'production') { Empty.displayName = 'EmptyImage'; } export default Empty;