Skip to content

Instantly share code, notes, and snippets.

View MrHertal's full-sized avatar

Grégoire Hertault MrHertal

View GitHub Profile
import * as React from "react";
// Defines the three kinds of message that are displayed
export enum ToastType {
Info = "INFO",
Error = "ERROR",
Success = "SUCCESS",
}
// Defines the parameters required to display the toast
import * as React from "react";
import { StyleSheet, Text, View } from "react-native";
import { ToastType } from "./ToastProvider";
import { useToast } from "../hooks/useToast";
export const Toast: React.FC = () => {
// Toast is using hook to retrieve config and to hide itself
const { toastConfig, hideToast } = useToast();
React.useEffect(() => {
@MrHertal
MrHertal / flowise-cloudformation.yml
Last active July 18, 2024 09:00
AWS Fargate cluster hosting Flowise exposed through ELB.
AWSTemplateFormatVersion: "2010-09-09"
Description: This template creates resources for Flowise application
Parameters:
Stage:
Description: Prefix of resource names
Type: String
Default: flowise