import React from "react"; import type { Team } from "@mosaic/shared"; import { Card, CardHeader, CardContent } from "@mosaic/ui"; import Link from "next/link"; interface TeamCardProps { team: Team; workspaceId: string; } export const TeamCard = React.memo(function TeamCard({ team, workspaceId, }: TeamCardProps): React.JSX.Element { return (

{team.name}

{team.description ? (

{team.description}

) : (

No description

)}
Created {new Date(team.createdAt).toLocaleDateString()}
); });