import { cn, getCodeHostIcon } from "@/lib/utils"; import { FolderIcon, LibraryBigIcon } from "lucide-react"; import Image from "next/image"; import { SearchScope } from "../types"; interface SearchScopeIconProps { searchScope: SearchScope; className?: string; } export const SearchScopeIcon = ({ searchScope, className = "h-4 w-4" }: SearchScopeIconProps) => { if (searchScope.type === 'reposet') { return ; } else { // Render code host icon for repos const codeHostIcon = searchScope.codeHostType ? getCodeHostIcon(searchScope.codeHostType) : null; if (codeHostIcon) { const size = className.includes('h-3') ? 12 : 16; return ( {`${searchScope.codeHostType} ); } else { return ; } } };