import type {ReactNode} from 'react';
import {Button} from 'sentry/components/button';
import {IconClose} from 'sentry/icons';
import {t} from 'sentry/locale';
import EmptyState from 'sentry/views/replays/detail/emptyState';
type Props = {
children: ReactNode;
clearSearchTerm: () => void;
unfilteredItems: unknown[];
};
function NoRowRenderer({children, unfilteredItems, clearSearchTerm}: Props) {
return unfilteredItems.length === 0 ? (
{children}
) : (
{t('No results found')}
} onClick={clearSearchTerm}>
{t('Clear filters')}
);
}
export default NoRowRenderer;