mirror of
https://github.com/zitadel/zitadel.git
synced 2025-03-01 06:17:24 +00:00

* docs: rewrite concept section * docs: add instance to guides * chore: error messages * fix: scenarios * docs: urls * docs: change images * docs: change images * docs: change images Co-authored-by: Livio Amstutz <livio.a@gmail.com>
35 lines
756 B
JavaScript
35 lines
756 B
JavaScript
import React from 'react';
|
|
|
|
import styles from '../css/apicard.module.css';
|
|
|
|
export function ApiCard({ title, type, label, children}) {
|
|
let style = styles.apiauth;
|
|
switch (type) {
|
|
case 'AUTH':
|
|
style = styles.apiauth;
|
|
break;
|
|
case 'MGMT':
|
|
style = styles.apimgmt;
|
|
break;
|
|
case 'ADMIN':
|
|
style = styles.apiadmin;
|
|
break;
|
|
case 'SYSTEM':
|
|
style = styles.apisystem;
|
|
break;
|
|
case 'ASSET':
|
|
style = styles.apiasset;
|
|
break;
|
|
}
|
|
|
|
return (
|
|
<div className={`${styles.apicard} ${style} `}>
|
|
{/* {title && <h2 className={styles.apicard.title}>{title}</h2>} */}
|
|
{/* <p className={styles.apicard.description}>
|
|
|
|
</p> */}
|
|
{children}
|
|
</div>
|
|
)
|
|
}
|