import { useRef } from "react"; //types import { IIssueDisplayFilterOptions, IIssueDisplayProperties } from "@plane/types"; //components import { WithDisplayPropertiesHOC } from "../properties/with-display-properties-HOC"; import { HeaderColumn } from "./columns/header-column"; import { observer } from "mobx-react"; interface Props { displayProperties: IIssueDisplayProperties; property: keyof IIssueDisplayProperties; isEstimateEnabled: boolean; displayFilters: IIssueDisplayFilterOptions; handleDisplayFilterUpdate: (data: Partial) => void; } export const SpreadsheetHeaderColumn = observer((props: Props) => { const { displayProperties, displayFilters, property, isEstimateEnabled, handleDisplayFilterUpdate } = props; //hooks const tableHeaderCellRef = useRef(null); const shouldRenderProperty = property === "estimate" ? isEstimateEnabled : true; return ( shouldRenderProperty} > { tableHeaderCellRef?.current?.focus(); }} /> ); });