| 1 |
import { useGlobalStore, useGlobalStoreReady } from '../state/Global' |
| 2 |
|
| 3 |
const noticeKey = 'next-steps' |
| 4 |
export const NextSteps = () => { |
| 5 |
const { isDismissed, dismissNotice } = useGlobalStore() |
| 6 |
const ready = useGlobalStoreReady() |
| 7 |
|
| 8 |
if (!ready || isDismissed(noticeKey)) return null |
| 9 |
|
| 10 |
return ( |
| 11 |
<div> |
| 12 |
Notice |
| 13 |
<button type="button" onClick={() => dismissNotice(noticeKey)}> |
| 14 |
dismiss |
| 15 |
</button> |
| 16 |
</div> |
| 17 |
) |
| 18 |
} |
| 19 |
|