ConceptPortal-public/rsconcept/frontend/src/features/help/components/TopicItem.tsx
Ivan 17b94b5e9a
Some checks are pending
Frontend CI / build (22.x) (push) Waiting to run
R: Refactoring folder structure: introducing features
2025-02-10 01:32:55 +03:00

17 lines
432 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { describeHelpTopic, labelHelpTopic, removeTags } from '@/utils/labels';
import { LinkTopic } from '../components/LinkTopic';
import { HelpTopic } from '../models/helpTopic';
interface TopicItemProps {
topic: HelpTopic;
}
export function TopicItem({ topic }: TopicItemProps) {
return (
<li>
<LinkTopic text={labelHelpTopic(topic)} topic={topic} /> {removeTags(describeHelpTopic(topic))}
</li>
);
}