import * as React from 'react';
import { default as CustomToolbar } from '../Components/Password/CustomToolbar';
import { Paper, Box, ThemeProvider } from '@mui/material';
import MUIDataTable from "mui-datatables";
import { Encabezados, Build } from '../Components/Password/Rows';
import { TableStyle, TextLabels } from '../Components/Password/TableStyle'
import { useQuery } from 'react-query';
import { Service } from '../Utils/HTTP.js'
import { useSelector } from 'react-redux';
export function Contrasv2() {
const auth = useSelector((state) => state.token)
const getAllPwd = async () => {
let rest = new Service('/contrasenia/getallbyidUsr');
return await rest.getQuery(auth.token)
}
const { data, status } = useQuery('passwords', getAllPwd );
const options = {
filterType: 'checkbox',
customToolbar: () => {
return (