@@ -3,7 +3,6 @@ import { useNavigate, useParams } from "@solidjs/router";
33import ChevronsRight from "lucide-solid/icons/chevrons-right" ;
44import Maximize2 from "lucide-solid/icons/maximize-2" ;
55import RotateCcw from "lucide-solid/icons/rotate-ccw" ;
6- import TriangleAlert from "lucide-solid/icons/triangle-alert" ;
76import {
87 createEffect ,
98 createResource ,
@@ -15,7 +14,13 @@ import {
1514} from "solid-js" ;
1615import invariant from "tiny-invariant" ;
1716
18- import { Button , IconButton , InlineInput , ResizableHandle } from "catcolab-ui-components" ;
17+ import {
18+ Button ,
19+ IconButton ,
20+ InlineInput ,
21+ ResizableHandle ,
22+ WarningBanner ,
23+ } from "catcolab-ui-components" ;
1924import { getLiveAnalysis , type LiveAnalysisDoc } from "../analysis" ;
2025import { AnalysisNotebookEditor } from "../analysis/analysis_editor" ;
2126import { AnalysisInfo } from "../analysis/analysis_info" ;
@@ -262,22 +267,21 @@ export function DocumentPane(props: {
262267 return (
263268 < >
264269 < Show when = { isDeleted ( ) } >
265- < div class = "warning-banner" >
266- < TriangleAlert size = { 20 } />
267- < div class = "warning-banner-content" >
268- < strong > Warning:</ strong > This { props . doc . type } has been deleted and will
269- not be listed in your documents.
270- </ div >
271- < Button
272- variant = "utility"
273- onClick = { ( e ) => {
274- e . preventDefault ( ) ;
275- handleRestore ( ) ;
276- } }
277- >
278- < RotateCcw size = { 16 } /> Restore it
279- </ Button >
280- </ div >
270+ < WarningBanner
271+ actions = {
272+ < Button
273+ variant = "utility"
274+ onClick = { ( e ) => {
275+ e . preventDefault ( ) ;
276+ handleRestore ( ) ;
277+ } }
278+ >
279+ < RotateCcw size = { 16 } /> Restore it
280+ </ Button >
281+ }
282+ >
283+ This { props . doc . type } has been deleted and will not be listed in your documents.
284+ </ WarningBanner >
281285 </ Show >
282286 < div class = "notebook-container" >
283287 < div class = "document-head" >
0 commit comments