{line.slice(2)}
) : line.startsWith('## ') ? ({line.slice(3)}
) : line.startsWith('- ') ? ({line}
) : () )}
import { useMemo, useState, type ReactElement } from 'react' export function SkillPreviewDialog({ content, version, onClose }: { content: string version?: string onClose: () => void }): ReactElement { const [raw, setRaw] = useState(false) const lines = useMemo(() => content.split('\n'), [content]) return (
{content}
) : (
{line}
) : (