mirror of
https://github.com/remvze/moodist.git
synced 2025-12-17 08:54:13 +00:00
30 lines
640 B
TypeScript
30 lines
640 B
TypeScript
import { Sounds } from '@/components/sounds';
|
|
|
|
import styles from './category.module.css';
|
|
|
|
import type { Category } from '@/data/types';
|
|
|
|
interface CategoryProps extends Category {
|
|
functional?: boolean;
|
|
}
|
|
|
|
export function Category({
|
|
functional = true,
|
|
icon,
|
|
id,
|
|
sounds,
|
|
title,
|
|
}: CategoryProps) {
|
|
return (
|
|
<div className={styles.category}>
|
|
<div className={styles.iconContainer}>
|
|
<div className={styles.tail} />
|
|
<div className={styles.icon}>{icon}</div>
|
|
</div>
|
|
|
|
<h2 className={styles.title}>{title}</h2>
|
|
|
|
<Sounds functional={functional} id={id} sounds={sounds} />
|
|
</div>
|
|
);
|
|
}
|