import { clipboard } from "@vendetta/metro/common"; import { getAssetIDByName } from "@vendetta/ui/assets"; import { Forms, General } from "@vendetta/ui/components"; import { showToast } from "@vendetta/ui/toasts"; import { changelog, currentVersion } from "../changelog"; import { React } from "@vendetta/metro/common"; import { findByProps } from "@vendetta/metro"; const { TableRowGroup, TableRow, Stack } = findByProps( "TableSwitchRow", "TableRowGroup", "Stack", "TableRow", ); const { ScrollView } = General; export default function ChangelogView() { return ( { clipboard.setString(currentVersion); showToast( "Version copied to clipboard", getAssetIDByName("toast_copy_link"), ); }} > Copy } /> {changelog.map((entry, index) => ( Version {entry.version} {entry.date} {entry.changes.map((change, changeIndex) => ( • {change} ))} ))} ); }