import type { CompanySkill } from '@paperclipai/shared'; import { Link } from '@/lib/router'; export function SkillSourceProvenance({ skill }: { skill: CompanySkill }) { const id = skill.metadata?.skillSourceId ?? skill.metadata?.legacySkillSourceId; if (typeof id !== 'string') return null; const state = skill.metadata?.skillSourceState; const label = !skill.metadata?.skillSourceId ? 'Refresh this source to sync all files' : state === 'removed' ? 'Removed from source · last installed version retained' : state === 'not_syncing' ? 'Not syncing · installed copy retained' : state === 'update_failed' ? 'Update failed · last installed version retained' : 'Synced from GitHub'; return