@starlly-labs/photo-viewer
Version:
An exquisite React photo preview component
12 lines (11 loc) • 414 B
TypeScript
import React from 'react';
interface ProtectionManagerProps {
enabled: boolean;
protectionLayerRender?: (props: {
isVisible: boolean;
onRestore: () => void;
reason: 'focus' | 'command' | 'printscreen';
}) => React.ReactNode;
}
export default function ProtectionManager({ enabled, protectionLayerRender }: ProtectionManagerProps): React.JSX.Element | null;
export {};