import React from "react"; import { useRouter } from "next/router"; import { ChevronRight } from "lucide-react"; // components import { Tooltip } from "@plane/ui"; // types import { IIssue, IIssueDisplayProperties } from "types"; type Props = { issue: IIssue; expanded: boolean; handleToggleExpand: (issueId: string) => void; properties: IIssueDisplayProperties; quickActions: (issue: IIssue) => React.ReactNode; disableUserActions: boolean; nestingLevel: number; }; export const IssueColumn: React.FC = ({ issue, expanded, handleToggleExpand, properties, quickActions, disableUserActions, nestingLevel, }) => { // router const router = useRouter(); const handleIssuePeekOverview = (issue: IIssue) => { const { query } = router; router.push({ pathname: router.pathname, query: { ...query, peekIssueId: issue?.id, peekProjectId: issue?.project }, }); }; const paddingLeft = `${nestingLevel * 54}px`; return ( <>
{properties.key && (
{issue.project_detail?.identifier}-{issue.sequence_id} {!disableUserActions && (
{quickActions(issue)}
)}
{issue.sub_issues_count > 0 && (
)}
)}
handleIssuePeekOverview(issue)} > {issue.name}
); };