import {Grid, List, Pagination} from '@mui/material'; import * as React from 'react'; import Page from "./Page"; interface List { id: string; date: string; } export default function Pages({pages, url, removeUrl, csrf, passphrase, setPassphrase}) { const isPassphraseSet = passphrase !== null; let listPages = pages.map(page => ) if (isPassphraseSet) { return (
{listPages}
); } return (
); }