import { FontIcon, Link, Stack, Text } from "@fluentui/react"; import Explorer from "Explorer/Explorer"; import React from "react"; import * as ViewModels from "../../../../Contracts/ViewModels"; import { GlobalSecondaryIndexSourceComponent } from "./GlobalSecondaryIndexSourceComponent"; import { GlobalSecondaryIndexTargetComponent } from "./GlobalSecondaryIndexTargetComponent"; export interface GlobalSecondaryIndexComponentProps { collection: ViewModels.Collection; explorer: Explorer; } export const GlobalSecondaryIndexComponent: React.FC = ({ collection, explorer, }) => { const isTargetContainer = !!collection?.materializedViewDefinition(); const isSourceContainer = !!collection?.materializedViews(); return ( {isSourceContainer && ( This container has the following indexes defined for it. )} Learn more {" "} about how to define global secondary indexes and how to use them. {isSourceContainer && } {isTargetContainer && } ); };