import { Users } from 'lucide-react' import DataGrid, { Column } from 'react-data-grid' import { cn } from 'ui' /** * Renders a DataGrid configured to display an empty "no users" state. * * The grid includes three columns (Display name, Email, Phone) and no rows, and supplies a centered overlay with an icon and explanatory text when there are no rows. * * @returns A React element containing the configured DataGrid with an empty-state fallback UI. */ export default function DataGridEmptyState() { const columns: Column<{ id: string; name: string; email: string }>[] = [ { key: 'name', name: 'Display name', minWidth: 200, resizable: true }, { key: 'email', name: 'Email', minWidth: 250, resizable: true }, { key: 'phone', name: 'Phone', minWidth: 150, resizable: true }, ] const rows: { id: string; name: string; email: string }[] = [] return (
row.id} rowClass={() => { return cn( 'bg-surface-200 cursor-pointer', '[&>.rdg-cell]:border-box [&>.rdg-cell]:outline-hidden [&>.rdg-cell]:shadow-none', '[&>.rdg-cell:first-child>div]:ml-8' ) }} renderers={{ noRowsFallback: (

No users in your project

There are currently no users who signed up to your project

), }} />
) }