{\n if (event.key === 'Escape') {\n // Always stop propagation, to avoid weirdness for bottom sheets inside other bottom sheets\n event.stopPropagation()\n if (onDismiss) onDismiss()\n }\n }}\n >\n {header !== false && (\n
\n {header}\n
\n )}\n
\n {footer && (\n
\n {footer}\n
\n )}\n
\n