11 lines
397 B
TypeScript
11 lines
397 B
TypeScript
import { isRich, theme } from "./theme.js";
|
|
|
|
export const stylePromptMessage = (message: string): string =>
|
|
isRich() ? theme.accent(message) : message;
|
|
|
|
export const stylePromptTitle = (title?: string): string | undefined =>
|
|
title && isRich() ? theme.heading(title) : title;
|
|
|
|
export const stylePromptHint = (hint?: string): string | undefined =>
|
|
hint && isRich() ? theme.muted(hint) : hint;
|