import LogInLink from "../../ui/atoms/login-link"; import NoteCard from "../../ui/molecules/notecards"; import { getCategoryByPathname } from "../../utils"; export function NotSignedIn() { return (

You have not signed in

); } export function NotSubscriber() { return ( <>

You are signed in but not an active subscriber

); } export function DataError({ error }: { error: Error }) { return (

Server error

A server error occurred trying to get your collections.

{error.toString()}

Reload this page and try again.
); } export function _getIconLabel(url: string) { const category = getCategoryByPathname(url); if (!category) { return "docs"; } if (category === "javascript") { return "js"; } if (category === "accessibility") { return "acc"; } return category; }