18 lines
597 B
TypeScript
18 lines
597 B
TypeScript
// The branding module owns its colour calculation; its visual comparison is a shared kit surface.
|
|
import { type BrandPreviewLabels, BrandPreview as KitBrandPreview } from "@conusai-kit/ui/patterns"
|
|
import { tenantStyle } from "../contract/style.js"
|
|
export type PreviewLabels = BrandPreviewLabels
|
|
export function BrandPreview({
|
|
primary,
|
|
accent,
|
|
defaultPrimary,
|
|
labels,
|
|
}: {
|
|
primary: string | null
|
|
accent: string | null
|
|
defaultPrimary: string
|
|
labels: PreviewLabels
|
|
}) {
|
|
return <KitBrandPreview {...tenantStyle({ primary: primary ?? defaultPrimary, accent })} labels={labels} />
|
|
}
|