import type { SourceId } from '@app/shared/sources'; import type { Skin } from '@app/types'; import { forwardRef } from 'react'; 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