import React from "react";
import { AnnotationHandler, BlockAnnotation, InnerLine } from "codehike/code";
import { Code } from "./Code";
const markAnnotation: AnnotationHandler = {
name: "mark",
Line: (props) => {
return
},
Inline: (props) => {
return
},
}
const bgAnnotation: AnnotationHandler = {
name: "bg",
Inline: (props) => {
return
}
}
const lineNumberAnnotation: AnnotationHandler = {
name: "line-numbers",
Line: ({ annotation, ...props }) => {
return
},
}
export const diffAnnotation: AnnotationHandler = {
name: "diff",
onlyIfAnnotated: true,
transform: (annotation: BlockAnnotation) => {
return [annotation, { ...annotation, name: "mark", query: annotation.query, diff: true }]
},
Line: ({ annotation, ...props }) => (
<>
{annotation?.query}
>
),
}
export const annotations = {
mark: markAnnotation,
bg: bgAnnotation,
lineNumbers: lineNumberAnnotation,
diff: diffAnnotation
}