import { Table, TableHeader, TableBody, TableProps } from '@patternfly/react-table/deprecated'; import { Bullseye, EmptyState, EmptyStateVariant, EmptyStateBody, Button, EmptyStateFooter, EmptyStateActions } from '@patternfly/react-core'; import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon'; // This example has been simplified to focus on the empty state. In real usage, // you may want to derive your rows from typed underlying data and minimal state. See other examples. export const LegacyTableEmptyState: React.FunctionComponent = () => { const columns: TableProps['cells'] = ['Repositories', 'Branches', 'Pull requests', 'Workspaces', 'Last commit']; const rows: TableProps['rows'] = [ { heightAuto: true, cells: [ { props: { colSpan: 8 }, title: ( Clear all filters and try again. ) } ] } ]; return (
); };