Commit f0d46805 authored by Lyza Danger Gardner's avatar Lyza Danger Gardner Committed by Lyza Gardner

Convert AnnotationDocumentInfo to TS

parent 6dad6f3a
import { Link } from '@hypothesis/frontend-shared/lib/next'; import { Link } from '@hypothesis/frontend-shared/lib/next';
/** export type AnnotationDocumentInfoProps = {
* @typedef AnnotationDocumentInfoProps /** The domain associated with the document */
* @prop {string} [domain] - The domain associated with the document domain?: string;
* @prop {string} [link] - A link to the document (directly) /** A direct link to the document */
* @prop {string} title - The document's title link?: string;
*/ title: string;
};
/** /**
* Render some metadata about an annotation's document and link to it * Render some metadata about an annotation's document and link to it
* if a link is available. * if a link is available.
* *
* @param {AnnotationDocumentInfoProps} props * @param {AnnotationDocumentInfoProps} props
*/ */
export default function AnnotationDocumentInfo({ domain, link, title }) { export default function AnnotationDocumentInfo({
domain,
link,
title,
}: AnnotationDocumentInfoProps) {
return ( return (
<div className="flex gap-x-1"> <div className="flex gap-x-1">
<div className="text-color-text-light"> <div className="text-color-text-light">
......
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