mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-26 13:18:51 +01:00
* some jsx to tsx and added 3 new test * test(stop) * new librechat and azure icon, small fix * fix(tsc error) * fix(tsc error) Endpoint Item
22 lines
510 B
TypeScript
22 lines
510 B
TypeScript
import EndpointItem from './EndpointItem';
|
|
|
|
interface EndpointItemsProps {
|
|
endpoints: string[];
|
|
onSelect: (endpoint: string) => void;
|
|
selectedEndpoint: string;
|
|
}
|
|
|
|
export default function EndpointItems({ endpoints, selectedEndpoint }: EndpointItemsProps) {
|
|
return (
|
|
<>
|
|
{endpoints.map((endpoint) => (
|
|
<EndpointItem
|
|
isSelected={selectedEndpoint === endpoint}
|
|
key={endpoint}
|
|
value={endpoint}
|
|
endpoint={endpoint}
|
|
/>
|
|
))}
|
|
</>
|
|
);
|
|
}
|