mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-18 14:25:51 +00:00
纯格式化:移除分号、React Compiler import、import 多行展开。 修复了 Box.tsx 和 ScrollBox.tsx 中无效的 global.d.ts import。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
18 lines
347 B
TypeScript
18 lines
347 B
TypeScript
import React from 'react'
|
|
|
|
export type Props = {
|
|
/**
|
|
* Number of newlines to insert.
|
|
*
|
|
* @default 1
|
|
*/
|
|
readonly count?: number
|
|
}
|
|
|
|
/**
|
|
* Adds one or more newline (\n) characters. Must be used within <Text> components.
|
|
*/
|
|
export default function Newline({ count = 1 }: Props) {
|
|
return <ink-text>{'\n'.repeat(count)}</ink-text>
|
|
}
|