import type React from 'react'; import { ErrorBoundary } from 'react-error-boundary'; import { IconButton } from '@meshtastic/components'; import { ErrorFallback } from '../ErrorFallback'; import { Sidebar } from './Sidebar'; export interface LayoutProps { title: string; icon: React.ReactNode; sidebarContents: React.ReactNode; children: React.ReactNode; } export const Layout = ({ title, icon, sidebarContents, children, }: LayoutProps): JSX.Element => { return (