import React from "react"; 1; import { Link, Table, Thead, Tbody, Tr, Th, Td, Typography, VisuallyHidden, IconButton, Flex, Pagination, PreviousLink, NextLink, PageLink, Dots, } from "@strapi/design-system"; import pluginId from "../../pluginId"; import { Pencil } from "@strapi/icons"; import { useRouteMatch } from "react-router-dom"; import { Trash } from "@strapi/icons"; import { useDefaultHeads } from "../../lib/queries/default-head"; const DefaultHeadsTable = () => { /* const match = useRouteMatch<{ page: string }>( */ /* `/settings/${pluginId}/heads/page/:page` */ /* ); */ /* const pageNumber = parseInt(match?.params.page ?? "1"); */ const { data: heads } = useDefaultHeads(); return ( <> {heads?.map((head, i) => ( ))}
Index Name Head type
{i} {head.name} {head.headType}
{/* <> */} {/* {heads && heads.pagination.pageCount > 1 && ( */} {/* */} {/* */} {/* Previous */} {/* */} {/* */} {/* Next */} {/* */} {/* */} {/* )} */} {/* */} ); }; export default DefaultHeadsTable;