{activePanel === "format" ? <>
{selectedCount ? "分支主题" : "中心主题"}
形状
文本
{[{icon:Bold,id:"bold" as const,label:"粗体",active:isBold},{icon:Italic,id:"italic" as const,label:"斜体",active:isItalic},{icon:Underline,id:"underlined" as const,label:"下划线",active:isUnderlined}].map(({icon:Icon,id,label,active}) =>
)}
结构
{activeLayout.label}
{structuresOpen ?
{layouts.map(layout => )}
: null}
分支
> : <>
背景
{["#ffffff","#f7f8fb","#f1f5f9","#fff8e7","#eef8f1","#f5f0ff"].map(color =>
彩虹色
{themes.map(theme => )}
网格
>}