/** * Section intro — the card a section opens with: a gold icon disc, the * section's title and a line saying what it covers, inside a tinted card * with a white rim. Every section renders its intro through this, so the * look is decided in one place (`.aureon-admin__section-head` in style.scss, * built on the shared `intro-card` mixin the Customizer's native panel ledes * use too — see `src/shared/_intro-card.scss`). * * `children` is the text column — normally an `

` and a description, plus * whatever else a section says there (a "Learn more" link). `aside` sits at * the end of the row, outside the text column (a documentation button). */ import type { ReactNode } from 'react'; import type { PanelIcon } from '../module-icons'; interface SectionIntroProps { icon: PanelIcon; children: ReactNode; aside?: ReactNode; } export default function SectionIntro( { icon: Icon, children, aside, }: SectionIntroProps ) { return (
{ children }
{ aside }
); }