import { SummaryProps } from "@types"; import { Forms } from "@ui/components"; import { getAssetIDByName } from "@ui/assets"; import { ReactNative as RN } from "@metro/common"; // TODO: Animated would be awesome // TODO: Destructuring Forms doesn't work here. Why? export default function Summary({ label, icon, noPadding = false, children }: SummaryProps) { const [hidden, setHidden] = React.useState(true); return ( <> } trailing={} onPress={() => setHidden(!hidden)} /> {!hidden && <> {children} } ) }