import { Warning } from 'phosphor-react-native'; import React, { ReactNode } from 'react'; import { colors } from '../../theme/theme'; import { Box } from '../Box'; import { CollapsibleButton, CollapsibleContent } from '../Collapsible'; import { CollapsibleProvider } from '../Collapsible/providers/context'; import { Text } from '../Text'; interface IAlertCollapsible { title: string; subtitle: ReactNode; description: ReactNode; } export const AlertCollapsible = ({ title, subtitle, description, }: IAlertCollapsible) => { return ( {title} {typeof subtitle === 'string' ? ( {subtitle} ) : ( subtitle )} {typeof description === 'string' ? ( {description} ) : ( description )} ); };