import React, { useState } from "react"; import theme from "mazlo-theme"; import { Button } from "../Button"; import { Icon } from "../Icon"; import { Modal } from "../Modal"; import { Text } from "../Text"; import { View } from "../View"; import styles from "./styles"; type Props = { children: React.ReactNode; onConfirm?: () => void; onDismiss: () => void; visible: boolean; }; const Dialog = ({ children, onConfirm, onDismiss, visible }: Props) => ( {typeof children === "string" ? {children} : children}