Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/FoxxMD/multi-scrobbler. Scrobble plays from multiple sources to multiple clients docs.multi-scrobbler.app
deezer docker jellyfin koito lastfm listenbrainz maloja mopidy mpris music music-assistant plex scrobble self-hosted spotify subsonic tautulli youtube-music
Something went wrong. Try again.
937 B · 27 lines
TSX
12345678910111213141516171819202122232425262728import * as React from 'react';import { Alert } from '@chakra-ui/react';import { ErrorBoundary, getErrorMessage } from "react-error-boundary";import { ChakraCodeBlock } from './CodeBlock';
export const MSErrorBoundary = (props: React.PropsWithChildren) => { return ( <ErrorBoundary
fallbackRender={({ error, resetErrorBoundary }) => ( <Alert.Root status="error"> <Alert.Indicator /> <Alert.Content> <Alert.Title>Error while render</Alert.Title> <Alert.Description> <ChakraCodeBlock code={getErrorMessage(error)} maxLines={6} collapsedMaxHeight="10em" language="plaintext" /> </Alert.Description> </Alert.Content> </Alert.Root> )} > {props.children}
</ErrorBoundary> )}