feature(dashboard): add integrations and notifications

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-10-02 22:12:05 +02:00
parent d920f6951c
commit f65a633403
94 changed files with 3692 additions and 127 deletions

View File

@@ -0,0 +1,28 @@
import { cn } from '@/utils/cn';
import { Badge } from './ui/badge';
export function Ping({ className }: { className?: string }) {
return (
<div className="relative">
<div className={cn('size-2 bg-emerald-500 rounded-full', className)} />
<div
className={cn(
'size-2 bg-emerald-500 rounded-full absolute inset-0 animate-ping',
className,
)}
/>
</div>
);
}
export function PingBadge({
children,
className,
}: { children: React.ReactNode; className?: string }) {
return (
<Badge variant={'outline'} className={cn('flex gap-1', className)}>
<Ping />
{children}
</Badge>
);
}