Rebasely Beta: data may be purged

justintypescript-ultra-strict Public

Text · 11 lines · 456 B · at 358de06

import { Some, None, type Option } from "@tsus/runtime";import { channelName } from "./channel.tsus";const emblem = (framework: string): Option<string> =>  framework === "Next.js" ? Some("▲") : None;export const pageTitle = (framework: string): string =>  match (emblem(framework)) {    Some(mark) => `Hello from tsus inside ${framework} ${mark} via ${channelName()}`,    None => `Hello from tsus inside ${framework} via ${channelName()}`,  };