Skip to content

Database diagrams editor that allows you to visualize and design your DB with a single query.

465 B
Raw Blame
import { createContext } from 'react';
import { emptyFn } from '@/lib/utils';

export type ImageType = 'png' | 'jpeg' | 'svg';
export interface ExportImageContext {
    exportImage: (
        type: ImageType,
        options: {
            includePatternBG: boolean;
            transparent: boolean;
            scale: number;
        }
    ) => Promise<void>;
}

export const exportImageContext = createContext<ExportImageContext>({
    exportImage: emptyFn,
});