import cx from 'clsx';
import * as React from 'react';
import { Eye, EyeOff, X as Close } from '~/components/shared/FeatherIcons';
import { useToggle } from '~/hooks/basic';
import type { ClashAPIConfigWithAddedAt } from '~/store/types';
import type { ClashAPIConfig } from '~/types';
import s from './BackendList.module.scss';
type Props = {
apiConfigs: ClashAPIConfigWithAddedAt[];
selectedClashAPIConfigIndex: number;
onRemove: (x: ClashAPIConfig) => void;
onSelect: (x: ClashAPIConfig) => void;
};
export function BackendList({
apiConfigs,
selectedClashAPIConfigIndex,
onRemove,
onSelect,
}: Props) {
return (
<>