Commit 5a18c4b3 authored by Lyza Danger Gardner's avatar Lyza Danger Gardner Committed by Lyza Gardner

Convert LoggedOutMessage to TS

parent a3985ba1
......@@ -7,19 +7,16 @@ import {
import { useSidebarStore } from '../store';
/**
* @typedef LoggedOutMessageProps
* @prop {() => void} onLogin
*/
export type LoggedOutMessageProps = {
onLogin: () => void;
};
/**
* Render a call-to-action to log in or sign up. This message is intended to be
* displayed to non-auth'd users when viewing a single annotation in a
* direct-linked context (i.e. URL with syntax `/#annotations:<annotation_id>`)
*
* @param {LoggedOutMessageProps} props
*/
function LoggedOutMessage({ onLogin }) {
function LoggedOutMessage({ onLogin }: LoggedOutMessageProps) {
const store = useSidebarStore();
return (
......
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