Professional security systems for your peace of mind
Added proper type safety:
Added onChange prop type
Improved error handling for arrays
Improved component architecture:
Created a reusable MenuButton component to reduce code duplication
Added proper type checking for the MenuButton props
Added safety checks:
Added check for document object to prevent SSR issues
Improved error display logic