/* ============================================================================ * Copyright (c) Cloud Annotations * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * ========================================================================== */ import React from "react"; import { useTypedSelector } from "../hooks"; function SecuritySchemes() { const options = useTypedSelector((state) => state.auth.options); const selected = useTypedSelector((state) => state.auth.selected); if (selected === undefined) return null; const selectedAuth = options[selected]; return (
{selectedAuth.map((auth) => { if (auth.type === "apiKey") { return ( Authorization: {auth.name}
                name: {auth.name}
                in: {auth.in}
                type: {auth.type}
              
); } return null; })}
); } export default SecuritySchemes;