refactor: enhance user tables and machine ticket views

This commit is contained in:
codex-bot 2025-11-03 11:51:53 -03:00
parent bd2f22d046
commit 28796bf105
7 changed files with 416 additions and 201 deletions

View 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>
)
}