ClusterContext.ts 463 B

123456789101112131415161718
  1. import React from 'react';
  2. export interface ContextProps {
  3. isReadOnly: boolean;
  4. hasKafkaConnectConfigured: boolean;
  5. hasSchemaRegistryConfigured: boolean;
  6. isTopicDeletionAllowed: boolean;
  7. }
  8. export const initialValue: ContextProps = {
  9. isReadOnly: false,
  10. hasKafkaConnectConfigured: false,
  11. hasSchemaRegistryConfigured: false,
  12. isTopicDeletionAllowed: true,
  13. };
  14. const ClusterContext = React.createContext(initialValue);
  15. export default ClusterContext;