mirror of
https://github.com/Steffo99/unisteffo.git
synced 2024-11-22 16:04:21 +00:00
76 lines
1.5 KiB
TypeScript
76 lines
1.5 KiB
TypeScript
|
import * as Bluelib from "@steffo/bluelib-react"
|
||
|
import TeX from "@matejmazur/react-katex"
|
||
|
|
||
|
|
||
|
export const Split = ({title = undefined, children}) => {
|
||
|
return (
|
||
|
<Bluelib.Chapter>
|
||
|
{title ?
|
||
|
<Bluelib.Heading level={3}>
|
||
|
{title}
|
||
|
</Bluelib.Heading>
|
||
|
: null}
|
||
|
{children}
|
||
|
</Bluelib.Chapter>
|
||
|
)
|
||
|
}
|
||
|
|
||
|
export const Box = ({title = undefined, children}) => {
|
||
|
return (
|
||
|
<Bluelib.Box>
|
||
|
{title ?
|
||
|
<Bluelib.Heading level={4}>
|
||
|
{title}
|
||
|
</Bluelib.Heading>
|
||
|
: null}
|
||
|
{children}
|
||
|
</Bluelib.Box>
|
||
|
)
|
||
|
}
|
||
|
|
||
|
export const Plus = (props) => {
|
||
|
return (
|
||
|
<Bluelib.BaseElement builtinColor={"red"} kind="span" {...props}/>
|
||
|
)
|
||
|
}
|
||
|
|
||
|
export const Minus = (props) => {
|
||
|
return (
|
||
|
<Bluelib.BaseElement builtinColor={"blue"} kind="span" {...props}/>
|
||
|
)
|
||
|
}
|
||
|
|
||
|
export const Color = ({builtin, ...props}) => {
|
||
|
return (
|
||
|
<Bluelib.BaseElement builtinColor={builtin} kind="span" {...props}/>
|
||
|
)
|
||
|
}
|
||
|
|
||
|
export const LatexMath = ({children, ...props}) => {
|
||
|
return (
|
||
|
<TeX math={children} {...props}/>
|
||
|
)
|
||
|
}
|
||
|
|
||
|
export const P = (props) => {
|
||
|
return (
|
||
|
<p {...props}/>
|
||
|
)
|
||
|
}
|
||
|
|
||
|
export const B = (props) => {
|
||
|
return (
|
||
|
<Bluelib.BringAttention {...props}/>
|
||
|
)
|
||
|
}
|
||
|
|
||
|
export const Todo = (props) => {
|
||
|
return (
|
||
|
<Bluelib.BaseElement todo={true} kind={"span"} {...props}/>
|
||
|
)
|
||
|
}
|
||
|
|
||
|
export const Anchor = Bluelib.Anchor
|
||
|
|
||
|
export const r = String.raw
|