import React, { useState } from 'react'; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select'; import { Button } from '@/components/ui/button'; import { Loader2 } from 'lucide-react'; import { ValidatorPoolCategory } from '@shared/lib/validator-pool'; interface PoolCategorySelectorProps { currentCategory?: ValidatorPoolCategory; onCategoryChange: (category: ValidatorPoolCategory) => void; disabled?: boolean; } const POOL_CATEGORIES = Object.values(ValidatorPoolCategory); export function PoolCategorySelector({ currentCategory, onCategoryChange, disabled }: PoolCategorySelectorProps) { const [selectedCategory, setSelectedCategory] = useState(currentCategory || POOL_CATEGORIES[0]); const handleSubmit = () => { onCategoryChange(selectedCategory); }; return (
); }