Portal/rsconcept/frontend/src/components/ui/LinkTopic.tsx
2024-10-31 15:21:21 +03:00

21 lines
428 B
TypeScript

import { urls } from '@/app/urls';
import { HelpTopic } from '@/models/miscellaneous';
import TextURL from './TextURL';
interface TextURLProps {
/** Text to display. */
text: string;
/** Topic to link to. */
topic: HelpTopic;
}
/**
* Displays a link to a help topic.
*/
function LinkTopic({ text, topic }: TextURLProps) {
return <TextURL text={text} href={urls.help_topic(topic)} />;
}
export default LinkTopic;