2025-10-16 11:23:36 -07:00
|
|
|
/**
|
|
|
|
|
* @license
|
|
|
|
|
* Copyright 2025 Google LLC
|
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import type React from 'react';
|
|
|
|
|
import { Box, Text } from 'ink';
|
|
|
|
|
import { theme } from '../semantic-colors.js';
|
2026-03-09 23:26:33 +00:00
|
|
|
import { formatCommand } from '../key/keybindingUtils.js';
|
|
|
|
|
import { Command } from '../key/keyBindings.js';
|
2025-10-16 11:23:36 -07:00
|
|
|
|
|
|
|
|
export const RawMarkdownIndicator: React.FC = () => {
|
2026-03-06 18:34:26 +00:00
|
|
|
const modKey = formatCommand(Command.TOGGLE_MARKDOWN);
|
2025-10-16 11:23:36 -07:00
|
|
|
return (
|
|
|
|
|
<Box>
|
|
|
|
|
<Text>
|
|
|
|
|
raw markdown mode
|
|
|
|
|
<Text color={theme.text.secondary}> ({modKey} to toggle) </Text>
|
|
|
|
|
</Text>
|
|
|
|
|
</Box>
|
|
|
|
|
);
|
|
|
|
|
};
|