refactor: enhance user tables and machine ticket views
This commit is contained in:
parent
bd2f22d046
commit
28796bf105
7 changed files with 416 additions and 201 deletions
30
src/components/ui/empty-indicator.tsx
Normal file
30
src/components/ui/empty-indicator.tsx
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
"use client"
|
||||
|
||||
import type { ComponentType } from "react"
|
||||
|
||||
import { cn } from "@/lib/utils"
|
||||
|
||||
type IconProps = {
|
||||
className?: string
|
||||
}
|
||||
|
||||
type EmptyIndicatorProps = {
|
||||
icon: ComponentType<IconProps>
|
||||
label: string
|
||||
className?: string
|
||||
}
|
||||
|
||||
export function EmptyIndicator({ icon: Icon, label, className }: EmptyIndicatorProps) {
|
||||
return (
|
||||
<span
|
||||
className={cn(
|
||||
"relative inline-flex h-8 w-8 items-center justify-center rounded-full border border-dashed border-neutral-300 bg-neutral-50 text-neutral-400",
|
||||
className,
|
||||
)}
|
||||
>
|
||||
<Icon className="size-4" aria-hidden="true" />
|
||||
<span className="sr-only">{label}</span>
|
||||
</span>
|
||||
)
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue