A simple tool which lets you scrape twitter accounts and crosspost them to bluesky accounts! Comes with a CLI and a webapp for managing profiles! Works with images/videos/link embeds/threads.
at main 29 lines 1.2 kB view raw
1import * as React from 'react'; 2import { cva, type VariantProps } from 'class-variance-authority'; 3import { cn } from '../../lib/utils'; 4 5const badgeVariants = cva( 6 'inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors duration-200 motion-reduce:transition-none', 7 { 8 variants: { 9 variant: { 10 default: 'border-transparent bg-foreground text-background', 11 secondary: 'border-transparent bg-muted text-foreground', 12 outline: 'border-border text-muted-foreground', 13 success: 'border-emerald-500/30 bg-emerald-500/10 text-emerald-600 dark:text-emerald-300', 14 warning: 'border-amber-500/30 bg-amber-500/10 text-amber-600 dark:text-amber-300', 15 danger: 'border-red-500/30 bg-red-500/10 text-red-600 dark:text-red-300', 16 }, 17 }, 18 defaultVariants: { 19 variant: 'default', 20 }, 21}); 22 23export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {} 24 25function Badge({ className, variant, ...props }: BadgeProps) { 26 return <div className={cn(badgeVariants({ variant }), className)} {...props} />; 27} 28 29export { Badge, badgeVariants };