37 lines
654 B
TypeScript
37 lines
654 B
TypeScript
'use client';
|
|
|
|
import { EmptyState } from '@/ui/EmptyState';
|
|
import { LucideIcon } from 'lucide-react';
|
|
import React from 'react';
|
|
|
|
interface AdminEmptyStateProps {
|
|
icon: LucideIcon;
|
|
title: string;
|
|
description?: string;
|
|
action?: React.ReactNode;
|
|
}
|
|
|
|
/**
|
|
* AdminEmptyState
|
|
*
|
|
* Semantic empty state for admin lists and tables.
|
|
* Follows "Precision Racing Minimal" theme.
|
|
*/
|
|
export function AdminEmptyState({
|
|
icon,
|
|
title,
|
|
description,
|
|
action
|
|
}: AdminEmptyStateProps) {
|
|
return (
|
|
<EmptyState
|
|
icon={icon}
|
|
title={title}
|
|
description={description}
|
|
variant="minimal"
|
|
>
|
|
{action}
|
|
</EmptyState>
|
|
);
|
|
}
|