import Popout from '../popout.js'
import Highlight from './highlight.js'
import YouTube from './youtube.js'
import Figure from './figure.js'
import ReadMore from './read-more.js'
import { Tab, Tabs } from './tabs.js'
import Example from './example.js'
import Examples from './examples.js'
const methodClasses = {
get: 'bg-green-600 text-white',
post: 'bg-sky-600 text-white',
put: 'bg-orange-500 text-white',
delete: 'bg-red-600 text-white',
}
const Method = (props) => {
let method = false
for (const m in methodClasses) {
if (!method && props[m]) method = m.toUpperCase()
}
return (
{method}
)
}
const statusClasses = {
2: 'bg-green-600 text-white',
4: 'bg-orange-500 text-white',
5: 'bg-red-600 text-white',
}
const StatusCode = ({ status }) => {
return (
{status}
)
}
const mdxCustomComponents = (app = false) => ({
// Custom components
Method,
StatusCode,
Comment: (props) => ,
Fixme: (props) => ,
Link: (props) => ,
Note: (props) => ,
ReadMore: (props) => ,
Related: (props) => ,
Tip: (props) => ,
Warning: (props) => ,
YouTube,
pre: (props) => ,
img: Figure,
table: (props) => (
),
Tab,
Tabs,
Example: (props) => ,
Examples: (props) => ,
})
export default mdxCustomComponents
//{children}