import {
OrderedList,
UnorderedList,
Code as ChakraCode,
Link as ChakraLink,
Text as ChakraText,
Divider as ChakraDivider,
Heading as ChakraHeading,
Checkbox as ChakraCheckbox,
ListItem as ChakraListItem,
} from '@chakra-ui/react';
import { TD, TH, Table as ChakraTable } from './table';
import { CodeBlock as CustomCodeBlock, If } from '~/components';
import type {
BoxProps,
TextProps,
CodeProps,
LinkProps,
HeadingProps,
DividerProps,
} from '@chakra-ui/react';
import type { TCheckbox, TList, THeading, TCodeBlock, TTableData, TListItem } from './types';
export const Checkbox = (props: TCheckbox) => {
const { checked, ...rest } = props;
return ;
};
export const List = (props: TList) => {
const { ordered, ...rest } = props;
return (
<>
>
);
};
export const ListItem = (props: TListItem) => {
const { checked, ...rest } = props;
return checked ? : ;
};
export const Heading = (props: THeading) => {
const { level, ...rest } = props;
const levelMap = {
1: { as: 'h1', size: 'lg', fontWeight: 'bold' },
2: { as: 'h2', size: 'lg', fontWeight: 'normal' },
3: { as: 'h3', size: 'lg', fontWeight: 'bold' },
4: { as: 'h4', size: 'md', fontWeight: 'normal' },
5: { as: 'h5', size: 'md', fontWeight: 'bold' },
6: { as: 'h6', size: 'sm', fontWeight: 'bold' },
} as { [i: number]: HeadingProps };
return ;
};
export const Link = (props: LinkProps) => ;
export const CodeBlock = (props: TCodeBlock) => {props.value};
export const TableData = (props: TTableData) => {
const { isHeader, ...rest } = props;
return (
<>
|
|
>
);
};
export const Paragraph = (props: TextProps) => ;
export const InlineCode = (props: CodeProps) => ;
export const Divider = (props: DividerProps) => ;
export const Table = (props: BoxProps) => ;