import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from "@/components/ui/table" import { projectTemplates } from "@/lib/data" import { ChevronRight } from "lucide-react" import Image from "next/image" import Link from "next/link" import Avatar from "../ui/avatar" import Button from "../ui/customButton" export default function DashboardSharedWithMe({ shared, }: { shared: { id: string name: string type: string author: string authorAvatarUrl: string sharedOn: Date }[] }) { return (
Shared With Me
{shared.length > 0 ? (
Sandbox Name Shared By Sent On {shared.map((sandbox) => (
p.id === sandbox.type) ?.icon ?? "/project-icons/node.svg" } width={20} height={20} className="mr-2" /> {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!
)}
) }