mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-22 18:43:29 +00:00
15 lines
288 B
TypeScript
15 lines
288 B
TypeScript
import { ClassValue } from 'clsx';
|
|
|
|
export interface InlineProps<T> {
|
|
inline: T;
|
|
}
|
|
|
|
export function Inline<T>(props: InlineProps<T>) {
|
|
const { inline } = props;
|
|
|
|
switch (inline.type) {
|
|
default:
|
|
return <span>Unsupported inline {inline.type}</span>;
|
|
}
|
|
}
|