Some checks are pending
E2E / Playwright e2e (push) Waiting to run
- Introduced new components for managing admin settings, including AdminListControls, AdminSettingsCard, and TechBrandSelectLabel. - Implemented dynamic loading for admin settings sections to optimize performance. - Enhanced the layout of various admin settings sections for better user experience. - Updated the AiAssistantSection to include LLM provider management and improved model selection. - Refactored authentication settings to streamline configuration and improve accessibility.
28 lines
634 B
TypeScript
28 lines
634 B
TypeScript
import type { ReactNode } from "react"
|
|
import { Card, CardContent } from "@/components/ui/card"
|
|
|
|
export function AdminSettingsCard({
|
|
title,
|
|
description,
|
|
hint,
|
|
children,
|
|
}: {
|
|
title: string
|
|
description: ReactNode
|
|
hint?: ReactNode
|
|
children: ReactNode
|
|
}) {
|
|
return (
|
|
<Card className="gap-0 py-0">
|
|
<CardContent className="py-4">
|
|
<div>
|
|
<p className="font-medium">{title}</p>
|
|
<p className="mt-1 text-sm text-muted-foreground">{description}</p>
|
|
{hint}
|
|
</div>
|
|
<div className="mt-4 space-y-4 border-t pt-4">{children}</div>
|
|
</CardContent>
|
|
</Card>
|
|
)
|
|
}
|