Major changes across backend, frontend, infrastructure: - Provider system with model selection (Google, DeepL, OpenAI, Ollama, Google Cloud) - Admin panel: user management, pricing, settings - Glossary system with CSV import/export - Subscription and tier quota management - Security hardening (rate limiting, API key auth, path traversal fixes) - Docker compose for dev, prod, and IONOS deployment - Alembic migrations for new tables - Frontend: dashboard, pricing page, landing page, i18n (en/fr) - Test suite and verification scripts Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
26 lines
564 B
TypeScript
26 lines
564 B
TypeScript
'use client'
|
|
|
|
import { useTheme } from 'next-themes'
|
|
import { Toaster as Sonner, ToasterProps } from 'sonner'
|
|
|
|
const Toaster = ({ ...props }: ToasterProps) => {
|
|
const { theme = 'system' } = useTheme()
|
|
|
|
return (
|
|
<Sonner
|
|
theme={theme as ToasterProps['theme']}
|
|
className="toaster group"
|
|
style={
|
|
{
|
|
'--normal-bg': 'var(--popover)',
|
|
'--normal-text': 'var(--popover-foreground)',
|
|
'--normal-border': 'var(--border)',
|
|
} as React.CSSProperties
|
|
}
|
|
{...props}
|
|
/>
|
|
)
|
|
}
|
|
|
|
export { Toaster }
|