/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import type React from 'react'; import { Text, type TextProps } from 'ink'; import Gradient from 'ink-gradient'; import { theme } from '../semantic-colors.js'; export const ThemedGradient: React.FC = ({ children, ...props }) => { const gradient = theme.ui.gradient; if (gradient && gradient.length >= 2) { return ( {children} ); } if (gradient && gradient.length === 1) { return ( {children} ); } // Fallback to accent color if no gradient return ( {children} ); };