@shopify/shop-minis-react
Version:
React component library for Shopify Shop Minis with Tailwind CSS v4 support (source-only, requires TypeScript)
16 lines (12 loc) • 393 B
text/typescript
import {useShopActions} from '../../internal/useShopActions'
import {ShopActions} from '../../types'
interface UseErrorScreenReturns {
/**
* Show an error screen with the given error message.
*/
showErrorScreen: ShopActions['showErrorScreen']
}
export const useErrorScreen = (): UseErrorScreenReturns => {
const {showErrorScreen} = useShopActions()
return {showErrorScreen}
}