+
@@ -33,46 +41,28 @@ const ChatCard = ({ text, icon, title, uid, slug, accessed_models }: CardProps)
{text}
- {accessed_models && !accessed_models.includes(slug) && (
-
-
-
-
-
+
+
+ Модель недоступна
+
+
+ ) : (
+ accessed_models &&
+ !accessed_models.includes(slug) && (
+
+
+ Недоступно в текущем тарифе
+
+ )
)}
@@ -9,8 +9,8 @@ import ChatCard from '@/src/main/components/chat_bot_card'
import { Layout } from '@/src/main/layout'
import { useAppSelector } from '@/src/main/store/store'
import model_api from '@/src/shared/api/models/api'
-import { IShortModel } from '@/src/shared/api/models/models'
import { getTypeDevice } from '@/src/shared/lib/helpers'
+import { IShortModel } from '@/src/entities/model-entity'
export async function getServerSideProps(context: any): Promise<{ props: any }> {
const deviceType = getTypeDevice(context)
@@ -42,7 +42,9 @@ const Page: React.FC