mirror of
https://github.com/whekin/household-bot.git
synced 2026-03-31 21:04:03 +00:00
refactor(miniapp): extract shell states and finance visuals
This commit is contained in:
20
apps/miniapp/src/components/session/blocked-state.tsx
Normal file
20
apps/miniapp/src/components/session/blocked-state.tsx
Normal 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 }}
|
||||
/>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user