Files
discord-decomp/modules/stickers/native/StickerOptionsActionSheet.tsx
T
2026-11-01 12:12:55 +02:00

24 lines
1.1 KiB
TypeScript

// Metro module 9641 (f9642).
import { useCallback } from "react";
import { copy } from "../../../utils/ClipboardUtils.native";
import { presentCopiedToClipboard } from "../../toast/native/ToastUtils";
import ActionSheetActionCreators from "../../action_sheet/native/ActionSheetActionCreators";
import { ActionSheet } from "../../../design/components/Sheet/native/ActionSheet.native";
import { TableRowGroup } from "../../../design/components/TableRow/native/TableRowGroup.native";
import { TableRow } from "../../../design/components/TableRow/native/TableRow.native";
import { LinkIcon } from "../../../design/components/Icon/native/redesign/generated/LinkIcon";
import { intl, t } from "../../../intl/index.native";
export default function StickerOptionsActionSheet(props) {
const stickerUrl = props.stickerUrl;
const callback = useCallback(() => {
copy(stickerUrl);
presentCopiedToClipboard();
ActionSheetActionCreators.hideActionSheet();
}, [stickerUrl]);
return <ActionSheet>
<TableRowGroup hasIcons>
<TableRow icon={<LinkIcon />} label={intl.string(t.B1ubHx)} onPress={callback} />
</TableRowGroup>
</ActionSheet>;
};