mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-07-16 01:52:15 +01:00
18 lines
440 B
TypeScript
18 lines
440 B
TypeScript
// Copyright 2020 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
import type { DropzoneOptions } from 'react-dropzone';
|
|
import { useDropzone } from 'react-dropzone';
|
|
|
|
export const useStickerDropzone = (
|
|
onDrop: DropzoneOptions['onDrop']
|
|
): ReturnType<typeof useDropzone> =>
|
|
useDropzone({
|
|
onDrop,
|
|
accept: {
|
|
'image/png': ['.png'],
|
|
'image/webp': ['.webp'],
|
|
'image/apng': ['.apng'],
|
|
},
|
|
});
|