mirror of
https://github.com/LibreChat-AI/librechat.ai.git
synced 2026-03-27 10:48: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.
34 lines
724 B
TypeScript
34 lines
724 B
TypeScript
/**
|
|
* Nextra compatibility shim for `nextra-theme-docs`.
|
|
* Provides stub implementations so existing pages/ components
|
|
* can resolve their imports during the migration to Fumadocs.
|
|
*/
|
|
import type { ReactNode } from 'react'
|
|
|
|
interface ChildrenProps {
|
|
children?: ReactNode
|
|
[key: string]: any
|
|
}
|
|
|
|
export type DocsThemeConfig = Record<string, any>
|
|
|
|
export function useConfig(): any {
|
|
return {
|
|
title: '',
|
|
frontMatter: {},
|
|
}
|
|
}
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
export function ThemeSwitch(props: any) {
|
|
return null
|
|
}
|
|
|
|
export function Link({ children, href, ...props }: ChildrenProps & { href?: string }) {
|
|
return (
|
|
<a href={href} {...props}>
|
|
{children}
|
|
</a>
|
|
)
|
|
}
|