import { FormattedDate } from "@/components/FormattedDate";
import type { Session } from "@/lib/types";
import { Link } from "@tanstack/react-router";

export const SessionRow = ({ session }: { session: Session }) => {
  return (
    <div>
      <Link
        to="/document/$documentId"
        params={{ documentId: session.id }}
        className="block font-semibold text-lg text-slate-300"
      >
        <FormattedDate date={session.created} />
      </Link>
      <div className="">{session.data.strongStart}</div>
    </div>
  );
};
