mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 05:26:04 +08:00
fix: remove useless code (#1903)
This commit is contained in:
parent
a0a9461f79
commit
ca85b0afbe
@ -1,23 +1,17 @@
|
|||||||
'use client'
|
'use client'
|
||||||
import type { FC } from 'react'
|
import type { FC } from 'react'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { useContext } from 'use-context-selector'
|
|
||||||
import I18n from '@/context/i18n'
|
|
||||||
import type { ProviderEnum } from '@/app/components/header/account-setting/model-page/declarations'
|
|
||||||
import ProviderConfig from '@/app/components/header/account-setting/model-page/configs'
|
|
||||||
|
|
||||||
export type IProviderNameProps = {
|
export type IProviderNameProps = {
|
||||||
provideName: ProviderEnum
|
provideName: string
|
||||||
}
|
}
|
||||||
|
|
||||||
const ProviderName: FC<IProviderNameProps> = ({
|
const ProviderName: FC<IProviderNameProps> = ({
|
||||||
provideName,
|
provideName,
|
||||||
}) => {
|
}) => {
|
||||||
const { locale } = useContext(I18n)
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<span>
|
<span>
|
||||||
{ProviderConfig[provideName]?.selector?.name[locale]}
|
{provideName}
|
||||||
</span>
|
</span>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user