Files
PodTui/src/components/SyncError.tsx
2026-02-04 00:06:16 -05:00

16 lines
355 B
TypeScript

type SyncErrorProps = {
message: string
onRetry: () => void
}
export function SyncError(props: SyncErrorProps) {
return (
<box border title="Error" style={{ padding: 1, flexDirection: "column", gap: 1 }}>
<text>{props.message}</text>
<box border onMouseDown={props.onRetry}>
<text>Retry</text>
</box>
</box>
)
}