import { useRouter } from "next/router"; import Link from "next/link"; // ui import { Tooltip } from "components/ui"; // icons import { getPriorityIcon, getStateGroupIcon } from "components/icons"; import { CalendarDaysIcon, ClockIcon } from "@heroicons/react/24/outline"; // helpers import { renderShortNumericDateFormat } from "helpers/date-time.helper"; import { addSpaceIfCamelCase } from "helpers/string.helper"; // types import type { IInboxIssue } from "types"; type Props = { issue: IInboxIssue; active: boolean; }; export const InboxIssueCard: React.FC = (props) => { const { issue, active } = props; const router = useRouter(); const { workspaceSlug, projectId, inboxId } = router.query; const issueStatus = issue.issue_inbox[0].status; return (

{issue.project_detail?.identifier}-{issue.sequence_id}

{issue.name}
{getStateGroupIcon( issue.state_detail?.group ?? "backlog", "14", "14", issue.state_detail?.color )} {issue.state_detail?.name ?? "Triage"}
{getPriorityIcon( issue.priority && issue.priority !== "" ? issue.priority ?? "" : "None", "text-sm" )}
{renderShortNumericDateFormat(issue.created_at ?? "")}
{issue.issue_inbox[0].snoozed_till && (
Snoozed till {renderShortNumericDateFormat(issue.issue_inbox[0].snoozed_till)}
)}
); };