Files
discord-decomp/modules/messages/native/emoji/EmojiOptionsActionSheet.tsx
T
2026-11-01 12:12:55 +02:00

24 lines
1.1 KiB
TypeScript

// Metro module 9423 (f9424).
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 EmojiOptionsActionSheet(props) {
const emojiSrc = props.emojiSrc;
const callback = useCallback(() => {
copy(emojiSrc);
presentCopiedToClipboard();
ActionSheetActionCreators.hideActionSheet();
}, [emojiSrc]);
return <ActionSheet>
<TableRowGroup hasIcons>
<TableRow icon={<LinkIcon />} label={intl.string(t.cIoudn)} onPress={callback} />
</TableRowGroup>
</ActionSheet>;
};