module IHP.IDE.SchemaDesigner.View.Enums.New where import IHP.ViewPrelude import IHP.IDE.SchemaDesigner.Types import IHP.IDE.ToolServer.Types import IHP.IDE.SchemaDesigner.View.Layout data NewEnumView = NewEnumView { statements :: [Statement] } instance View NewEnumView where html NewEnumView { .. } = [hsx|
{renderObjectSelector (zip [0..] statements) Nothing} {emptyColumnSelectorContainer}
{migrationStatus} {renderModal modal} |] where modalContent = [hsx|
|] modalFooter = mempty modalCloseUrl = pathTo TablesAction modalTitle = "New Enum" modal = Modal { modalContent, modalFooter, modalCloseUrl, modalTitle }