import { Table, Thead, Tbody, Tr, Th, } from '@chakra-ui/react'; import React from 'react'; import type { ApiKeys, ApiKey } from 'types/api/account'; import ApiKeyTableItem from './ApiKeyTableItem'; interface Props { data?: ApiKeys; isLoading?: boolean; onEditClick: (item: ApiKey) => void; onDeleteClick: (item: ApiKey) => void; limit: number; } const ApiKeyTable = ({ data, isLoading, onDeleteClick, onEditClick, limit }: Props) => { return ( { data?.map((item, index) => ( )) }
{ `API key token (limit ${ limit } keys)` }
); }; export default ApiKeyTable;