refactor(miniapp): extract shell states and finance visuals

This commit is contained in:
2026-03-11 18:44:12 +04:00
parent b193f8ddce
commit ebd12eb46e
6 changed files with 119 additions and 51 deletions

View File

@@ -0,0 +1,20 @@
import { HeroBanner } from '../layout/hero-banner'
type Props = {
badge: string
title: string
body: string
reloadLabel: string
onReload: () => void
}
export function BlockedState(props: Props) {
return (
<HeroBanner
badges={[props.badge]}
title={props.title}
body={props.body}
action={{ label: props.reloadLabel, onClick: props.onReload }}
/>
)
}