--- export interface Props { tool: { name: string; description: string; domains: string[]; phases: string[]; platforms: string[]; skillLevel: string; accessType: string; url: string; projectUrl?: string; license: string; tags: string[]; statusUrl?: string; }; } const { tool } = Astro.props; // Check if tool has a valid project URL (means we're hosting it) const hasValidProjectUrl = tool.projectUrl !== undefined && tool.projectUrl !== null && tool.projectUrl !== "" && tool.projectUrl.trim() !== ""; // Determine card styling based on hosting status (derived from projectUrl) const cardClass = hasValidProjectUrl ? 'card card-hosted' : (tool.license !== 'Proprietary' ? 'card card-oss' : 'card'); ---
{tool.description}