ConceptPortal-public/rsconcept/frontend/src/features/help/components/TopicItem.tsx

18 lines
459 B
TypeScript
Raw Normal View History

2025-02-11 20:56:24 +03:00
import { removeTags } from '@/utils/utils';
2024-05-16 14:01:06 +03:00
import { LinkTopic } from '../components/LinkTopic';
2025-02-11 20:56:24 +03:00
import { describeHelpTopic, labelHelpTopic } from '../labels';
import { HelpTopic } from '../models/helpTopic';
2024-05-16 14:01:06 +03:00
interface TopicItemProps {
topic: HelpTopic;
}
export function TopicItem({ topic }: TopicItemProps) {
2024-05-16 14:01:06 +03:00
return (
<li>
2024-06-07 13:42:50 +03:00
<LinkTopic text={labelHelpTopic(topic)} topic={topic} /> {removeTags(describeHelpTopic(topic))}
2024-05-16 14:01:06 +03:00
</li>
);
}