import Button from "@moduletrace/twui/layout/Button"; import Span from "@moduletrace/twui/layout/Span"; import { twMerge } from "tailwind-merge"; import type { BotSessionListItem } from "@/src/types"; import relativeTime from "@/src/utils/relative-time"; type Props = { session: BotSessionListItem; loading?: boolean; disabled?: boolean; onOpen: () => void; /** * The session the page shows (`?session_id=`, else the active one): * marked Current and greyed out. */ current: boolean; }; /** * One session in the rail's sub-list under the open bot: aligned with the * bot's name, its title and how recent. The one on screen is * Current (greyed out); any other opens on click (reopening a closed one, * going back to the active one). */ export default function RailBotSessionRow({ session, loading, disabled, onOpen, current, }: Props) { const at = session.last_activity_at || session.created_at; return ( ); }