mirror of
https://github.com/zitadel/zitadel.git
synced 2025-04-22 14:51:31 +00:00

* api cards, cleanup overview * endpoint, definition shortcuts, links * update quickstart links * mobile overflow * Update docs/docs/apis/introduction.mdx Co-authored-by: Florian Forster <florian@caos.ch> * Update docs/docs/apis/introduction.mdx Co-authored-by: Florian Forster <florian@caos.ch> Co-authored-by: Florian Forster <florian@caos.ch>
32 lines
692 B
JavaScript
32 lines
692 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 '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>
|
|
)
|
|
}
|