5a824c2eee
75 components + DESIGN_SYSTEM.md + sync script. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
21 lines
828 B
TypeScript
21 lines
828 B
TypeScript
import { Dropzone as MantineDropzone, IMAGE_MIME_TYPE, MIME_TYPES } from '@mantine/dropzone'
|
|
import type { DropzoneProps as MantineDropzoneProps } from '@mantine/dropzone'
|
|
import '@mantine/dropzone/styles.css'
|
|
|
|
interface DropzoneProps extends Partial<MantineDropzoneProps> {
|
|
children: React.ReactNode
|
|
}
|
|
|
|
function Dropzone({ children, ...props }: DropzoneProps) {
|
|
return <MantineDropzone onDrop={() => {}} {...props}>{children}</MantineDropzone>
|
|
}
|
|
|
|
// Re-export sub-components and constants
|
|
const DropzoneAccept = MantineDropzone.Accept
|
|
const DropzoneReject = MantineDropzone.Reject
|
|
const DropzoneIdle = MantineDropzone.Idle
|
|
const DropzoneFullScreen = MantineDropzone.FullScreen
|
|
|
|
export { Dropzone, DropzoneAccept, DropzoneReject, DropzoneIdle, DropzoneFullScreen, IMAGE_MIME_TYPE, MIME_TYPES }
|
|
export type { DropzoneProps }
|