/* ---------------------- Lists --------------------- */
import React from 'react'
export const UnorderedList = (props: any) => {
return
}
export const OrderedList = (props: any) => {
return
}
export const ListItem = (props: any) => {
return
}
/* ------------------- Typography ------------------- */
type Heading = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'
function heading(heading: Heading, props: any) {
const Element = ({ ...props }) => React.createElement(heading, props)
if (props.id) {
return (
{props.children}
)
}
return
}
export const Heading1 = (props: any) => {
return heading('h1', props)
}
export const Heading2 = (props: any) => {
return heading('h2', props)
}
export const Heading3 = (props: any) => {
return heading('h3', props)
}
export const Heading4 = (props: any) => {
return heading('h4', props)
}
export const Heading5 = (props: any) => {
return heading('h5', props)
}
export const Heading6 = (props: any) => {
return heading('h6', props)
}
export const Paragraph = (props: any) => {
return
}
export const A = (props: any) => {
const isLocalUrl = props.href.startsWith('/') || props.href.startsWith('#')
let maybeParsedUrl
try {
maybeParsedUrl = isLocalUrl ? null : new URL(props.href)
} catch (e) {
console.error(`Invalid URL: ${props.href}`)
}
const derivedTarget =
isLocalUrl ||
maybeParsedUrl?.host.includes('tldraw.com') ||
maybeParsedUrl?.host.includes('localhost')
? undefined
: '_blank'
const target = props.target ?? derivedTarget
return
}
export const Divider = (props: any) => {
return
}
export const Blockquote = (props: any) => {
return
}
export const Small = (props: any) => {
return (
)
}
/* --------------------- Tables --------------------- */
export const Table = (props: any) => {
return
}
export const THead = (props: any) => {
return
}
export const TR = (props: any) => {
return
}
export const TD = (props: any) => {
return |
}
/* --------------------- Media --------------------- */
export const Image = (props: any) => {
return (
{props.caption && {props.caption}}
)
}
export const Video = (props: any) => {
return (
{props.caption && {props.caption}}
)
}
/* ------------------- Code Blocks ------------------ */
export const Pre = (props: any) => {
return
}
export const Code = (props: any) => {
return
}
export const Footnotes = (props: any) => {
return
}
/* -------------------- API docs -------------------- */
export const ApiHeading = (props: any) => {
return
}
export const Embed = (props: any) => {
return (
{props.caption && {props.caption}}
)
}