import {useState} from 'react'; import styled from '@emotion/styled'; import AssigneeSelectorDropdown, { AssigneeWrapper, } from 'sentry/components/assigneeSelectorDropdown'; import GridEditable, {type GridColumnOrder} from 'sentry/components/gridEditable'; import {Grid} from 'sentry/components/gridEditable/styles'; import {GroupSummary} from 'sentry/components/group/groupSummary'; import TimeSince from 'sentry/components/timeSince'; import type {Group} from 'sentry/types/group'; function IssuesList() { const [activeRowKey, setActiveRowKey] = useState(undefined); const columnOrder: Array> = [ {key: 'title', name: 'Issue'}, {key: 'lastSeen', name: 'Age'}, {key: 'assignedTo', name: 'Assignee'}, ]; const renderHeadCell = (column: GridColumnOrder) => column.name; const renderBodyCell = (column: GridColumnOrder, dataRow: Group) => { switch (column.key) { case 'title': return ( ); case 'lastSeen': return ; case 'assignedTo': return ; default: return null; } }; return ( { setActiveRowKey(key); }} onRowMouseOut={() => { setActiveRowKey(undefined); }} highlightedRowKey={activeRowKey} /> ); } const Wrapper = styled('div')` ${Grid} { grid-template-columns: 3fr 1fr 1fr !important; } ${AssigneeWrapper} { justify-content: flex-start; } `; export default IssuesList;