init
This commit is contained in:
commit
d69342b2e9
160 changed files with 28681 additions and 0 deletions
20
studio/src/components/ui/Badge.tsx
Normal file
20
studio/src/components/ui/Badge.tsx
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
type BadgeVariant = 'draft' | 'published' | 'default'
|
||||
|
||||
interface BadgeProps {
|
||||
variant?: BadgeVariant
|
||||
children: string
|
||||
}
|
||||
|
||||
const variantClasses: Record<BadgeVariant, string> = {
|
||||
draft: 'badge-draft',
|
||||
published: 'badge-published',
|
||||
default: 'badge text-muted border-border',
|
||||
}
|
||||
|
||||
export function Badge({ variant = 'default', children }: BadgeProps) {
|
||||
return (
|
||||
<span className={variantClasses[variant]}>
|
||||
{children}
|
||||
</span>
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue