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