import { TableHead, TableRow, TableCell, Checkbox, TableSortLabel, Box, IconButton,Typography,Toolbar, Tooltip } from '@mui/material' import { alpha } from '@mui/material/styles'; import { visuallyHidden } from '@mui/utils'; import { encabezados } from './Rows'; import { Delete as DeleteIcon, FilterList as FilterListIcon, // LastPage as LastPageIcon, FirstPage as FirstPageIcon, KeyboardArrowRight, KeyboardArrowLeft, } from '@mui/icons-material/' export const rows = [ createData('Cupcake', 305, 'Analista',109238109238, 'SI', 'SI', 'Nice', 'Good'), ] for(let x of new Array(50)){ console.log(x) rows.push(rows[0]) } export const TableEncabezadoOperation = (props) => { const { numSelected } = props; return ( 0 && { bgcolor: (theme) => alpha(theme.palette.primary.main, theme.palette.action.activatedOpacity), }), }} > {numSelected > 0 ? ( {numSelected} selected ) : ( Contraseñas )} {numSelected > 0 ? ( ) : ( )} ); } export function createData(name, calories, fat, carbs, protein) { return { name, calories, fat, carbs, protein, }; } function descendingComparator(a, b, orderBy) { if (b[orderBy] < a[orderBy]) { return -1; } if (b[orderBy] > a[orderBy]) { return 1; } return 0; } export function Comparar(order, orderBy) { return order === 'desc' ? (a, b) => descendingComparator(a, b, orderBy) : (a, b) => -descendingComparator(a, b, orderBy); } export function Cuerpo(array, comparator) { const stabilizedThis = array.map((el, index) => [el, index]); stabilizedThis.sort((a, b) => { const order = comparator(a[0], b[0]); if (order !== 0) { return order; } return a[1] - b[1]; }); return stabilizedThis.map((el) => el[0]); } export function TableHeader(props){ const { onSelectAllClick, order, orderBy, numSelected, rowCount, onRequestSort } = props; const createSortHandler = (property) => (event) => { onRequestSort(event, property); }; return ( 0 && numSelected < rowCount} checked={rowCount > 0 && numSelected === rowCount} onChange={onSelectAllClick} inputProps={{ 'aria-label': 'select all desserts', }} /> { encabezados.map( (headCell, index) => ( {headCell.label} {orderBy === headCell.id ? ( {order === 'desc' ? 'sorted descending' : 'sorted ascending'} ) : null} ))} ); }