"use client" import React from 'react' import { Button } from '../ui' import { ExternalLink } from 'lucide-react' import { GoogleSheetsIcon } from '../icons-v2-generated' import { EmbedViewerFrame } from './embed-viewer-frame' import { toGoogleSheetsEmbedUrl, toGoogleSheetsOriginalUrl } from '../../utils/embed-url-converters' export interface GoogleSheetsViewerProps { externalUrl: string fileName?: string height?: string } export function GoogleSheetsViewer({ externalUrl, fileName, height }: GoogleSheetsViewerProps) { const displayName = fileName || 'Google Sheet' // Historical shape: no URL at all → standalone empty state with NO header // (the frame's empty body keeps the header — that's the figma behavior). if (!externalUrl) { return (
Google Sheet URL not configured