A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
TypeScript agent-skillsaidsh-pluginhacktoberfestjavascriptmcp-serverreactresume-builderself-hostedtypescript
import { Trans } from "@lingui/react/macro";
import { Alert, AlertDescription, AlertTitle } from "@reactive-resume/ui/components/alert";
import { Button } from "@reactive-resume/ui/components/button";
import { Icon } from "@reactive-resume/ui/components/icon";
type LibraryErrorProps = {
retrying: boolean;
onRetry: () => void;
};
export function LibraryError({ retrying, onRetry }: LibraryErrorProps) {
return (
<Alert variant="error">
<Icon name="warning-circle" />
<AlertTitle>
<Trans>Couldn't load documents</Trans>
</AlertTitle>
<AlertDescription>
<p>
<Trans>Check your connection and try again.</Trans>
</p>
<Button variant="secondary" className="mt-2" loading={retrying} onClick={onRetry}>
{retrying ? <Trans>Retrying…</Trans> : <Trans>Try again</Trans>}
</Button>
</AlertDescription>
</Alert>
);
}