Client component rendering reply-zero email list with router-based navigation.
"use client";
import { useRouter } from "next/navigation";
import sortBy from "lodash/sortBy";
import { useState, useCallback, type RefCallback } from "react";
import type { ParsedMessage } from "@/utils/types";
import { type ThreadTracker, ThreadTrackerType } from "@prisma/client";
import { Table, TableBody, TableCell, TableRow } from "@/components/ui/table";
import { EmailMessageCell } from "@/components/EmailMessageCell";
import { Button } from "@/components/ui/button";
import {
CheckCircleIcon,
CircleXIcon,
HandIcon,
RefreshCwIcon,
ReplyIcon,
XIcon,
} from "lucide-react";
import { useThreadsByIds } from "@/hooks/useThreadsByIds";
import { resolveThreadTrackerAction } from "@/utils/actions/reply-tracking";
import { toastError, toastSuccess } from "@/components/Toast";
impor
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key