diff --git a/knip.jsonc b/knip.jsonc index cf1229bd9..7de7f20de 100644 --- a/knip.jsonc +++ b/knip.jsonc @@ -42,7 +42,6 @@ "src/components/PartnersSection.tsx", "src/components/PartnershipCallout.tsx", "src/components/QueryGGBanner.tsx", - "src/components/StackBlitzEmbed.tsx", "src/components/UserFeedbackSection.tsx", "src/components/application-starter/CustomAddonDialog.tsx", "src/components/application-starter/CustomTemplateDialog.tsx", diff --git a/src/components/StackBlitzEmbed.tsx b/src/components/StackBlitzEmbed.tsx deleted file mode 100644 index 11e54fdbc..000000000 --- a/src/components/StackBlitzEmbed.tsx +++ /dev/null @@ -1,43 +0,0 @@ -import * as React from 'react' -import { useIsDark } from '~/hooks/useIsDark' -import { stackBlitzIframeProps } from '~/utils/stackblitz-embed' - -type StackBlitzEmbedProps = { - repo: string - branch: string - examplePath: string - file?: string - preset?: 'node' - height?: string | number - title?: string -} - -export function StackBlitzEmbed({ - repo, - branch, - examplePath, - file, - preset = 'node', - height = '80vh', - title, -}: StackBlitzEmbedProps) { - const isDark = useIsDark() - const themeParam = isDark ? 'dark' : 'light' - const fileParam = file ? `&file=${encodeURIComponent(file)}` : '' - - const src = `https://stackblitz.com/github/${repo}/tree/${branch}/${examplePath}?embed=1&theme=${themeParam}&preset=${preset}${fileParam}` - - return ( - //oxlint-disable-next-line jsx-a11y/iframe-has-title -