import React from "react";
import { View } from "react-native";
import type { BaseToastProps } from "react-native-toast-message";
import { Text } from "../text";
/**
* Shared toast renderer config for `react-native-toast-message`. Three
* variants (success / error / info) rendered as pill cards in the
* package's standard token palette. Used by `ToastPortal` on both
* native and web.
*/
export const toastConfig = {
success: ({ text1, text2 }: BaseToastProps) => (
{text1}
{text2 && {text2}}
),
error: ({ text1, text2 }: BaseToastProps) => (
{text1}
{text2 && {text2}}
),
info: ({ text1, text2 }: BaseToastProps) => (
{text1}
{text2 && {text2}}
),
};