'use client'
// Reusable licence-source banner placed at the top of an SDK module page.
// One-line context that tells the user (and any auditor) which sources
// the module draws on and which BreakPilot licence rule applies.
//
// Usage:
//
//
// For modules that are pure BreakPilot eigenwerk:
//
type Props = {
rule: 1 | 2 | 3
sourceLabel: string
/** Optional extended note shown after sourceLabel */
detail?: string
}
const RULE_META: Record = {
1: {
bg: 'bg-emerald-50 border-emerald-200',
text: 'text-emerald-800',
pill: 'bg-emerald-600 text-white',
descr: 'Hoheitsrecht/Public Domain — woertlich uebernehmbar',
},
2: {
bg: 'bg-amber-50 border-amber-200',
text: 'text-amber-800',
pill: 'bg-amber-600 text-white',
descr: 'Woertlich mit Attribution-Pflicht',
},
3: {
bg: 'bg-slate-50 border-slate-200',
text: 'text-slate-700',
pill: 'bg-slate-600 text-white',
descr: 'Identifier-Verweis / BreakPilot-Eigenwerk',
},
}
export function LicenseModuleBanner({ rule, sourceLabel, detail }: Props) {
const m = RULE_META[rule]
return (
)
}
export default LicenseModuleBanner