2023-09-15 10:07:47 +00:00
|
|
|
import React, { FC } from "react";
|
|
|
|
import { IIssue } from "types";
|
|
|
|
import { IssueListItem } from "./item";
|
2023-09-15 14:37:38 +00:00
|
|
|
import { observer } from "mobx-react-lite";
|
2023-09-15 10:07:47 +00:00
|
|
|
|
|
|
|
export interface IIssueListView {
|
2023-09-19 07:20:27 +00:00
|
|
|
issues: IIssue[] | null;
|
2023-09-15 11:25:38 +00:00
|
|
|
groupId: string;
|
2023-09-15 10:07:47 +00:00
|
|
|
}
|
|
|
|
|
2023-09-15 14:37:38 +00:00
|
|
|
export const IssueListView: FC<IIssueListView> = observer((props) => {
|
2023-09-15 11:25:38 +00:00
|
|
|
const { issues = [], groupId } = props;
|
2023-09-19 07:20:27 +00:00
|
|
|
return <div>{issues && issues.map((issue) => <IssueListItem issue={issue} groupId={groupId} />)}</div>;
|
2023-09-15 14:37:38 +00:00
|
|
|
});
|