"use client"; import { FC } from "react"; import { Grid, Box } from "@mui/material"; import { DataGridPro, GridColDef } from "@mui/x-data-grid-pro"; import { typography } from "../styles/theme"; interface ListProps { title: string; rows: any; columns: GridColDef[]; onRowClick?: (id: string) => void; buttons?: React.ReactNode; } export const List: FC = ({ title, rows, columns, onRowClick = () => {}, buttons, }) => { const { h3 } = typography; return ( {title} {buttons} onRowClick(row.id)} /> ); };