import { View } from "react-native"; import { useIOTheme } from "../../context"; import { IOIcons, Icon } from "../icons"; import { H6, BodySmall } from "../typography"; import { PressableModuleBase, PressableModuleBaseProps } from "./PressableModuleBase"; type Props = { label: string; description?: string; onPress: PressableModuleBaseProps["onPress"]; icon?: IOIcons; }; export const ModuleSummary = ({ label, description, onPress, icon = "info" }: Props) => { const theme = useIOTheme(); return (
{label}
{description && ( {description} )}
); };