chore: remove component v1 suffix

This commit is contained in:
Steven
2023-12-22 08:29:02 +08:00
parent 02265a6e1a
commit a3feeceace
44 changed files with 67 additions and 92 deletions

View File

@ -0,0 +1,26 @@
import { Node } from "@/types/proto/api/v2/markdown_service";
import Renderer from "./Renderer";
interface Props {
symbol: string;
children: Node[];
}
const UnorderedList: React.FC<Props> = ({ children }: Props) => {
return (
<ul>
<li className="grid grid-cols-[24px_1fr] gap-1">
<div className="w-7 h-6 flex justify-center items-center">
<span className="opacity-80"></span>
</div>
<div>
{children.map((child, index) => (
<Renderer key={`${child.type}-${index}`} node={child} />
))}
</div>
</li>
</ul>
);
};
export default UnorderedList;