A Razor UI component for the spawn menu footer that renders a single button labeled "Save Dupe". The button is disabled when CanSaveDupe() returns false and invokes MakeSave on click.
@using Sandbox; @using Sandbox.UI; @using Sandbox.Mounting; @inherits Panel @namespace Sandbox <root> <Button class="menu-action primary wide" Icon="💾" Text="Save Dupe" Disabled=@( !CanSaveDupe() ) @onclick=@MakeSave></Button> </root>