mirror of
https://github.com/LibreChat-AI/librechat.ai.git
synced 2026-03-27 02:38:32 +07:00
* chore: upgrade eslint to v9 * chore: update package dependencies in package.json and pnpm-lock.yaml - Added `minimatch` and `serialize-javascript` dependencies with updated versions. - Upgraded `ajv` to version 6.14.0. - Removed outdated dependencies from pnpm-lock.yaml for better package management. * feat: add Stripe logos to Companies section - Introduced new company entry for Stripe in the Companies component, including both light and dark logo variants. - Updated the Companies array to display 10 logos instead of 8. - Adjusted TypeScript environment reference to point to the development types directory.
22 lines
406 B
TypeScript
22 lines
406 B
TypeScript
'use client'
|
|
|
|
import { useEffect } from 'react'
|
|
import { Crisp } from 'crisp-sdk-web'
|
|
|
|
const CrispChat = () => {
|
|
useEffect(() => {
|
|
if (process.env.NEXT_PUBLIC_CRISP_WEBSITE_ID)
|
|
Crisp.configure(process.env.NEXT_PUBLIC_CRISP_WEBSITE_ID)
|
|
})
|
|
|
|
return null
|
|
}
|
|
|
|
export default CrispChat
|
|
|
|
export const openChat = () => {
|
|
if (process.env.NEXT_PUBLIC_CRISP_WEBSITE_ID) {
|
|
Crisp.chat.open()
|
|
}
|
|
}
|