mirror of
https://github.com/whekin/household-bot.git
synced 2026-03-31 11:54:03 +00:00
21 lines
395 B
TypeScript
21 lines
395 B
TypeScript
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 }}
|
|
/>
|
|
)
|
|
}
|