github.com/turbot/steampipe@v1.7.0-rc.0.0.20240517123944-7cef272d4458/ui/dashboard/src/components/dashboards/layout/Panel/PanelInformation.tsx (about) 1 import { classNames } from "../../../../utils/styles"; 2 import { usePanel } from "../../../../hooks/usePanel"; 3 4 const PanelInformation = () => { 5 const { showPanelInformation, panelInformation } = usePanel(); 6 7 if (!showPanelInformation) { 8 return null; 9 } 10 11 return ( 12 <div 13 className={classNames( 14 "absolute h-full overflow-y-scroll z-50 top-0 right-0 p-3 max-w-sm bg-dashboard-panel border-l border-divide text-sm" 15 )} 16 > 17 {panelInformation} 18 </div> 19 ); 20 }; 21 22 export default PanelInformation;