返回 oh-my-ppt
InspectorSection.tsx
根目录 / src / renderer / src / components / session-detail / element-inspector / InspectorSection.tsx
1 import type { ReactNode } from 'react'
2
3 export function InspectorSection({
4 title,
5 icon,
6 children
7 }: {
8 title: string
9 icon?: ReactNode
10 children: ReactNode
11 }): React.JSX.Element {
12 return (
13 <section className="rounded-[1.15rem] border border-[#ded2bd]/72 bg-[#fffaf1]/82 px-3 py-2.5 shadow-[0_6px_14px_rgba(74,59,42,0.08)]">
14 <div className="flex items-center gap-1.5">
15 {icon}
16 <span className="text-[11px] font-medium text-[#7a875f]">{title}</span>
17 </div>
18 <div className="mt-2">{children}</div>
19 </section>
20 )
21 }
22
22 lines Plain Text