import { cn, getCodeHostIcon } from "@/lib/utils"; import { CodeHostType } from "@sourcebot/db"; import { 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 = getCodeHostIcon(searchScope.codeHostType as CodeHostType); const size = className.includes('h-3') ? 12 : 16; return ( {`${searchScope.codeHostType} ); } };