{"version":3,"file":"useChatListActionsBar.mjs","names":[],"sources":["../../../../src/chat/ChatList/components/useChatListActionsBar.tsx"],"sourcesContent":["'use client';\n\nimport { Copy, Edit, RotateCw, Trash } from 'lucide-react';\nimport { useMemo } from 'react';\n\nimport type { ActionIconGroupItemType } from '@/ActionIconGroup';\n\ninterface ChatListActionsBar {\n  copy: ActionIconGroupItemType;\n  del: ActionIconGroupItemType;\n  divider: { type: 'divider' };\n  edit: ActionIconGroupItemType;\n  regenerate: ActionIconGroupItemType;\n}\n\nexport const useChatListActionsBar = (text?: {\n  copy?: string;\n  delete?: string;\n  edit?: string;\n  regenerate?: string;\n}): ChatListActionsBar => {\n  return useMemo(\n    () => ({\n      copy: {\n        icon: Copy,\n        key: 'copy',\n        label: text?.copy || 'Copy',\n      },\n      del: {\n        icon: Trash,\n        key: 'del',\n        label: text?.delete || 'Delete',\n      },\n      divider: {\n        type: 'divider',\n      },\n      edit: {\n        icon: Edit,\n        key: 'edit',\n        label: text?.edit || 'Edit',\n      },\n      regenerate: {\n        icon: RotateCw,\n        key: 'regenerate',\n        label: text?.regenerate || 'Regenerate',\n      },\n    }),\n    [text],\n  );\n};\n"],"mappings":";;;;AAeA,MAAa,yBAAyB,SAKZ;AACxB,QAAO,eACE;EACL,MAAM;GACJ,MAAM;GACN,KAAK;GACL,OAAO,MAAM,QAAQ;GACtB;EACD,KAAK;GACH,MAAM;GACN,KAAK;GACL,OAAO,MAAM,UAAU;GACxB;EACD,SAAS,EACP,MAAM,WACP;EACD,MAAM;GACJ,MAAM;GACN,KAAK;GACL,OAAO,MAAM,QAAQ;GACtB;EACD,YAAY;GACV,MAAM;GACN,KAAK;GACL,OAAO,MAAM,cAAc;GAC5B;EACF,GACD,CAAC,KAAK,CACP"}