/** * Component: Available Indexer Row * Documentation: documentation/frontend/components.md */ 'use client'; import React from 'react'; import { Button } from '@/components/ui/Button'; interface AvailableIndexerRowProps { indexer: { id: number; name: string; protocol: string; supportsRss: boolean; }; isAdded: boolean; onAdd: () => void; } export function AvailableIndexerRow({ indexer, isAdded, onAdd, }: AvailableIndexerRowProps) { return (
{/* Indexer Info */}
{indexer.name} {indexer.protocol}
{/* Action */}
{isAdded ? (
Added
) : ( )}
); }