import { getAssetIDByName } from "@ui/assets"; import { showToast } from "@ui/toasts"; import { Forms } from "@ui/components"; import copyText from "@utils/copyText"; interface VersionProps { label: string; version: string; icon: string; } const { FormRow, FormText } = Forms; export default function Version({ label, version, icon }: VersionProps) { return ( } trailing={() => {version}} onPress={() => { copyText(`${label} - ${version}`); showToast("Copied version to clipboard.", getAssetIDByName("toast_copy_link")); }} /> ) }