completed modules

This commit is contained in:
Km.Van
2025-08-10 19:57:03 +08:00
parent 29089a4de4
commit c12f7bea7d
73 changed files with 608 additions and 607 deletions

View File

@@ -0,0 +1,28 @@
import type { FC, ReactNode } from 'react';
import { ModuleArrow } from '@/Components/Module/components/arrow.tsx';
import styles from './item.module.scss';
const ModuleItemTitle: FC<{
id: string;
title: string;
}> = ({ id, title }) => {
return (
<h2 className={styles.header}>
<ModuleArrow id={id} isDown={false} />
<span className={styles.title}>{title}</span>
<ModuleArrow id={id} isDown />
</h2>
);
};
export const ModuleItem: FC<{
id: string;
title: string;
children: ReactNode;
}> = ({ id, title, children, ...props }) => {
return (
<div className={styles.main} id={id} {...props}>
<ModuleItemTitle id={id} title={title} />
<div className={styles.body}>{children}</div>
</div>
);
};