/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
packages/interface/src/components/complementary-area-header/index.js
28 строк
582 B
Marco Ciampini
ESLint: Replace strict config with bulk suppressions (#81248)
07 авг 2026, 14:34
Не верифицирован
07 авг 2026, 14:34
7f43eaf
Код
Авторство
О чём код?
import clsx from 'clsx'; import { closeSmall } from '@wordpress/icons'; import ComplementaryAreaToggle from '../complementary-area-toggle'; const ComplementaryAreaHeader = ( { children, className, toggleButtonProps, } ) => { const toggleButton = ( <ComplementaryAreaToggle icon={ closeSmall } { ...toggleButtonProps } /> ); return ( <div className={ clsx( 'components-panel__header', 'interface-complementary-area-header', className ) } tabIndex={ -1 } > { children } { toggleButton } </div> ); }; export default ComplementaryAreaHeader;