refactor(T11): split settings.tsx into settings/ directory

This commit is contained in:
DrSmoothl
2026-03-01 19:03:09 +08:00
parent dc7e037582
commit bddc6087cd
9 changed files with 2275 additions and 2227 deletions

View File

@@ -0,0 +1,15 @@
import { type LibraryItemProps } from './types'
export function LibraryItem({ name, description, license }: LibraryItemProps) {
return (
<div className="flex items-start justify-between gap-2 rounded-lg border bg-muted/30 p-2.5 sm:p-3">
<div className="flex-1 min-w-0">
<p className="font-medium text-foreground truncate">{name}</p>
<p className="text-muted-foreground text-xs mt-0.5">{description}</p>
</div>
<span className="inline-flex items-center rounded-full bg-primary/10 px-2 py-0.5 text-[10px] font-medium text-primary flex-shrink-0">
{license}
</span>
</div>
)
}