11import { useMemo , useState } from 'react' ;
22
3+ import { clsx } from 'clsx' ;
34import { c } from 'ttag' ;
45
56import { Button } from '@proton/atoms/Button/Button' ;
@@ -11,7 +12,11 @@ import {
1112 ModalTwoHeader ,
1213 useModalStateObject ,
1314} from '@proton/components' ;
14- import { clsx } from 'clsx' ;
15+ import { IcCheckmark } from '@proton/icons/icons/IcCheckmark' ;
16+ import { IcPen } from '@proton/icons/icons/IcPen' ;
17+ import { IcPlus } from '@proton/icons/icons/IcPlus' ;
18+ import { IcSquares } from '@proton/icons/icons/IcSquares' ;
19+ import { BRAND_NAME } from '@proton/shared/lib/constants' ;
1520
1621import { useConversationAgent } from '../../hooks/useConversationAgent' ;
1722import { useCustomAgents } from '../../hooks/useCustomAgents' ;
@@ -21,7 +26,6 @@ import type { CustomAgent } from '../../redux/slices/lumoUserSettings';
2126import { AgentModal } from './AgentModal' ;
2227import { DEFAULT_AGENT_ICON } from './constants' ;
2328import { getAgentByline , isAgentEditable } from './registry' ;
24- import { BRAND_NAME } from "@proton/shared/lib/constants" ;
2529
2630interface AgentPickerModalProps {
2731 /** Current conversation id, if a conversation already exists. */
@@ -74,6 +78,7 @@ export const AgentPickerModal = ({ conversationId }: AgentPickerModalProps) => {
7478
7579 const filteredAgents = useMemo ( ( ) => {
7680 const byFilter : CustomAgent [ ] =
81+ // eslint-disable-next-line no-nested-ternary
7782 filter === 'mine'
7883 ? personalAgents
7984 : filter === 'default'
@@ -188,9 +193,7 @@ export const AgentPickerModal = ({ conversationId }: AgentPickerModalProps) => {
188193 className = "flex items-center justify-center shrink-0 w-custom"
189194 style = { { '--w-custom' : '1.5rem' } as React . CSSProperties }
190195 >
191- { isActive && (
192- < Icon name = "checkmark" size = { 4 } className = "color-primary" />
193- ) }
196+ { isActive && < IcCheckmark size = { 4 } className = "color-primary" /> }
194197 </ span >
195198 { editable ? (
196199 < Button
@@ -201,7 +204,7 @@ export const AgentPickerModal = ({ conversationId }: AgentPickerModalProps) => {
201204 title = { c ( 'collider_2025:Action' ) . t `Edit agent` }
202205 aria-label = { c ( 'collider_2025:Action' ) . t `Edit agent` }
203206 >
204- < Icon name = "pen" size = { 4 } />
207+ < IcPen size = { 4 } />
205208 </ Button >
206209 ) : (
207210 < Button
@@ -212,7 +215,7 @@ export const AgentPickerModal = ({ conversationId }: AgentPickerModalProps) => {
212215 title = { c ( 'collider_2025:Action' ) . t `Make a copy` }
213216 aria-label = { c ( 'collider_2025:Action' ) . t `Make a copy` }
214217 >
215- < Icon name = "squares" size = { 4 } />
218+ < IcSquares size = { 4 } />
216219 </ Button >
217220 ) }
218221 </ div >
@@ -228,7 +231,7 @@ export const AgentPickerModal = ({ conversationId }: AgentPickerModalProps) => {
228231 className = "flex items-center justify-center gap-2 mb-2"
229232 onClick = { ( ) => openEditor ( undefined ) }
230233 >
231- < Icon name = "plus" size = { 4 } />
234+ < IcPlus size = { 4 } />
232235 { c ( 'collider_2025:Action' ) . t `New agent` }
233236 </ Button >
234237 </ ModalTwoContent >
0 commit comments