Spaces:
Runtime error
Runtime error
Download src/lib/utils/toaster.ts from enzostvs/lora-studio: direct link, hf CLI and curl.
- Browser
- Download file 528 Bytes
-
https://huggingface.co/spaces/enzostvs/lora-studio/resolve/main/src/lib/utils/toaster.ts
- Command line
-
hf download hf://spaces/enzostvs/lora-studio/src/lib/utils/toaster.ts
-
curl -L -o toaster.ts https://huggingface.co/spaces/enzostvs/lora-studio/resolve/main/src/lib/utils/toaster.ts
528 Bytes
| import { toast } from '@zerodevx/svelte-toast' | |
| export const success = (message: string) => toast.push(message, { | |
| theme: { | |
| '--toastBackground': '#4caf50', | |
| '--toastProgressBackground': '#81c784', | |
| '--toastProgressAfterBackground': '#4caf50', | |
| '--toastColor': '#fff', | |
| } | |
| }) | |
| export const error = (message: string) => toast.push(message, { | |
| theme: { | |
| '--toastBackground': '#f44336', | |
| '--toastProgressBackground': '#e57373', | |
| '--toastProgressAfterBackground': '#f44336', | |
| '--toastColor': '#fff', | |
| } | |
| }) |