import { React, ReactNative as RN, stylesheet } from "@vendetta/metro/common"; import { rawColors, semanticColors } from "@vendetta/ui"; export default function BetterTableRowGroup({ title, icon, children, padding = false, }: React.PropsWithChildren<{ title?: string; icon?: number; padding?: boolean; }>) { const styles = stylesheet.createThemedStyleSheet({ main: { backgroundColor: rawColors.PLUM_18, borderColor: semanticColors.CARD_BACKGROUND_DEFAULT, borderWidth: 1, borderRadius: 16, overflow: "hidden", flex: 1, maxWidth: "100%", }, titleContainer: { marginBottom: 8, marginHorizontal: 16, marginTop: 8, gap: 4, flexDirection: "row", alignItems: "center", }, icon: { width: 16, height: 16, marginTop: 1.5, tintColor: semanticColors.TEXT_MUTED, }, titleText: { fontSize: 14, fontWeight: "600", color: semanticColors.TEXT_MUTED, }, wrapper: { marginHorizontal: 16, marginTop: 16, maxWidth: "100%", }, }); return ( {title && ( {icon && ( )} {title.toUpperCase()} )} {padding ? ( {children} ) : ( children )} ); }