Makes session row and form components
This commit is contained in:
17
src/components/documents/session/SessionRow.tsx
Normal file
17
src/components/documents/session/SessionRow.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
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"
|
||||
>
|
||||
{session.created}
|
||||
</Link>
|
||||
<div className="">{session.data.session.strongStart}</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user