/** @jsxRuntime automatic */
/** @jsxImportSource @alchemy.run/sigil */
import { useGlyphs } from "./Environment.tsx";
import { Stack } from "./Layout.tsx";
import { Text } from "./Typography.tsx";
type AnsweredPromptProps = {
readonly message: string;
readonly answer: string;
readonly below?: boolean;
};
export function AnsweredPrompt({ message, answer, below = false }: AnsweredPromptProps) {
const glyphs = useGlyphs();
return below ? (
{glyphs.success} {message}
{answer}
) : (
{glyphs.success} {message} ยท {answer}
);
}
type CancelledPromptProps = { readonly message: string };
export function CancelledPrompt({ message }: CancelledPromptProps) {
const glyphs = useGlyphs();
return (
{glyphs.error} {message} cancelled
);
}