Update LinkTopic.tsx
This commit is contained in:
parent
26a74202a1
commit
abca112b28
|
@ -4,10 +4,15 @@ 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)} />;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user