import { defineAsyncComponent, markRaw } from 'vue'
import type { AppToolModuleItem } from '@/core/type'
import { I18nT } from '@lang/index'

const module: AppToolModuleItem = {
  id: 'url-parse',
  type: 'Web',
  label: () => I18nT('tools.url-parse-title'),
  icon: '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10 14a3.5 3.5 0 0 0 5 0l4-4a3.5 3.5 0 0 0-5-5l-.5.5"></path><path d="M14 10a3.5 3.5 0 0 0-5 0l-4 4a3.5 3.5 0 0 0 5 5l.5-.5"></path><path d="M16 21v-2"></path><path d="M19 16h2"></path><path d="M3 8h2"></path><path d="M8 3v2"></path></g></svg>',
  index: 0,
  component: markRaw(defineAsyncComponent(() => import('./index.vue')))
}
export default module
