import { useEffect, useState } from "react"; import { useDataProvider, useList } from "../../shared/hooks/dataHooks.js"; import { Alert } from "../../components/ui/alert"; import { Button } from "../../components/ui/button"; import { Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle } from "../../components/ui/dialog"; import { Input } from "../../components/ui/input"; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "../../components/ui/table"; import { ConfirmDialog, Field, PageHeader, PageState } from "../../shared/ui/ui.jsx"; import { useTitle } from "../../shared/hooks/hooks.js"; const namePattern = /^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$/; const tokenPattern = /^[A-Za-z0-9][A-Za-z0-9._-]{15,127}$/; function TokenCell({ token, name }) { const [visible, setVisible] = useState(false); return (
{visible ? token : "••••••••••••"}