import { FC } from "react"; // types import { TViewDisplayProperties, TViewTypes } from "@plane/types"; import { TViewOperations } from "../types"; type TViewDisplayPropertiesRoot = { workspaceSlug: string; projectId: string | undefined; viewId: string; viewType: TViewTypes; viewOperations: TViewOperations; }; export const ViewDisplayPropertiesRoot: FC = (props) => { const { workspaceSlug, projectId, viewId, viewType, viewOperations } = props; const displayProperties: Partial[] = [ "key", "state", "labels", "priority", "assignee", "start_date", "due_date", "sub_issue_count", "attachment_count", "estimate", "link", ]; return (
{displayProperties.map((property) => (
{}} > {["key"].includes(property) ? "ID" : property.replaceAll("_", " ")}
))}
); };