feat: ArticleLink 링크 기능 추가

This commit is contained in:
정기영 2024-07-17 13:15:43 +09:00
parent 257a18652d
commit 4587ea47af

View File

@ -1,10 +1,14 @@
import { Link } from 'react-router-dom';
import styles from './ArticleLink.module.css';
export default function ArticleLink() {
export default function ArticleLink({ path, title, noticeDate }) {
return (
<div className={styles.articleLink}>
<span className={styles.note}>공지사항</span>
<span className={styles.date}>07-12 14:34</span>
</div>
<Link
to={path}
className={styles.articleLink}
>
<span className={styles.note}>{title}</span>
<span className={styles.date}>{noticeDate}</span>
</Link>
);
}