import { forwardRef } from 'react'; import type { SourceId } from '../shared/sources'; import type { Skin } from '../types'; type PreviewProps = { pagePath: string; skin: Skin; source: SourceId; }; export const Preview = forwardRef(function Preview({ pagePath, skin, source }, ref) { const openUrl = `${pagePath}?skin=${encodeURIComponent(skin)}&source=${encodeURIComponent(source)}`; return (
Open