import { Sandbox } from "@/lib/types"; import { Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow, } from "@/components/ui/table"; import Image from "next/image"; import Button from "../ui/customButton"; import { ChevronRight } from "lucide-react"; import Avatar from "../ui/avatar"; import Link from "next/link"; export default function DashboardSharedWithMe({ shared, }: { shared: { id: string; name: string; type: "react" | "node"; author: string; sharedOn: Date; }[]; }) { return (
Shared With Me
{shared.length > 0 ? (
Sandbox Name Shared By Sent On {shared.map((sandbox) => (
{sandbox.name}
{sandbox.author}
{new Date(sandbox.sharedOn).toLocaleDateString()}
))}
) : (
No sandboxes here. Get a friend to share one with you, and try out live collaboration!
)}
); }