import { FC } from 'react'; import { Box, Button, Grid, Typography } from '@mui/material'; import { Lock, Public } from '@mui/icons-material'; export enum EndpointVisibility { Public = 'public', Private = 'private', } type ApiDocumentationVisibilityProps = { visibility: EndpointVisibility; }; export const ApiDocumentationVisibility: FC = ({ visibility }) => ( {visibility === EndpointVisibility.Public ? ( <> This endpoint is public! ) : ( <> This endpoint is private! )} {visibility === EndpointVisibility.Public ? ( <> This endpoint is publicly available from all over the Internet. Anyone can use, receive and send any data at any time. When implementing this endpoint, consider all security risks. ) : ( <> This endpoint is systemically protected. You must log in and have specific rights assigned to call this endpoint. )} );