Commit e974774b authored by Alejandro Celaya's avatar Alejandro Celaya Committed by Alejandro Celaya

Migrated AnnotationUser to TS

parent bb44a25d
import { LinkBase } from '@hypothesis/frontend-shared/lib/next';
/**
* @typedef AnnotationUserProps
* @prop {string} [authorLink]
* @prop {string} displayName
*/
type AnnotationUserProps = {
authorLink?: string;
displayName: string;
};
/**
* Display information about an annotation's user. Link to the user's
* activity if `authorLink` is present.
*
* @param {AnnotationUserProps} props
*/
function AnnotationUser({ authorLink, displayName }) {
function AnnotationUser({ authorLink, displayName }: AnnotationUserProps) {
const user = <h3 className="text-color-text font-bold">{displayName}</h3>;
if (authorLink) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment