import { useState, useEffect } from "react" import type { NextPage } from "next" import Head from "next/head" import AdminLayout from '../../components/AdminLayout' import { KeyIcon, PlusIcon } from '@heroicons/react/24/outline' const ApiKeys: NextPage = () => { const [keys, setKeys] = useState([]) useEffect(() => { fetch("/api/admin/api-keys").then(res => res.json()).then(setKeys) }, []) return ( <>
Správa API kľúčov pre prístup k systému
Zatiaľ neboli vytvorené žiadne API kľúče. Kliknite na "Vytvoriť kľúč" pre vytvorenie nového.
)}