import styled from '@emotion/styled'; import {IconSearch} from 'sentry/icons'; import space from 'sentry/styles/space'; import EmptyMessage from 'sentry/views/settings/components/emptyMessage'; type Props = { children?: React.ReactNode; className?: string; small?: boolean; withIcon?: boolean; }; const EmptyStateWarning = ({ small = false, withIcon = true, children, className, }: Props) => small ? ( {withIcon && } {children} ) : ( {withIcon && } {children} ); const EmptyStreamWrapper = styled('div')` text-align: center; font-size: 22px; padding: ${space(4)} ${space(2)}; p { line-height: 1.2; margin: 0 auto 20px; &:last-child { margin-bottom: 0; } } svg { fill: ${p => p.theme.gray200}; margin-bottom: ${space(2)}; } `; const SmallMessage = styled('div')` display: flex; align-items: center; color: ${p => p.theme.gray300}; font-size: ${p => p.theme.fontSizeExtraLarge}; line-height: 1em; `; const StyledIconSearch = styled(IconSearch)` margin-right: ${space(1)}; `; export default EmptyStateWarning;