import { observer } from "mobx-react-lite"; // hooks import { useProject } from "hooks/store"; // components import { SpreadsheetColumn } from "components/issues"; // types import { TIssue, IIssueDisplayFilterOptions, IIssueDisplayProperties, IIssueLabel, IState } from "@plane/types"; type Props = { displayFilters: IIssueDisplayFilterOptions; displayProperties: IIssueDisplayProperties; canEditProperties: (projectId: string | undefined) => boolean; expandedIssues: string[]; handleDisplayFilterUpdate: (data: Partial) => void; handleUpdateIssue: (issue: TIssue, data: Partial) => void; issues: TIssue[] | undefined; labels?: IIssueLabel[] | undefined; states?: IState[] | undefined; }; export const SpreadsheetColumnsList: React.FC = observer((props) => { const { canEditProperties, displayFilters, displayProperties, expandedIssues, handleDisplayFilterUpdate, handleUpdateIssue, issues, labels, states, } = props; // store hooks const { currentProjectDetails } = useProject(); const isEstimateEnabled: boolean = currentProjectDetails?.estimate !== null; return ( <> {displayProperties.state && ( )} {displayProperties.priority && ( )} {displayProperties.assignee && ( )} {displayProperties.labels && ( )}{" "} {displayProperties.start_date && ( )} {displayProperties.due_date && ( )} {displayProperties.estimate && isEstimateEnabled && ( )} {displayProperties.created_on && ( )} {displayProperties.updated_on && ( )} {displayProperties.link && ( )} {displayProperties.attachment_count && ( )} {displayProperties.sub_issue_count && ( )} ); });