import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card" import { Button } from "@/components/ui/button" import { SettingsGrid } from "@/components/settings-layout" import { Code, Copy, Check } from "lucide-react" import { useState } from "react" export function ShortcodeTab() { const [copied, setCopied] = useState(false) const shortcode = '[SWIFT_COMMERCE_currency_switcher]' const handleCopy = async () => { try { await navigator.clipboard.writeText(shortcode) setCopied(true) setTimeout(() => setCopied(false), 2000) } catch (err) { // Fallback for browsers that don't support clipboard API const textArea = document.createElement('textarea') textArea.value = shortcode document.body.appendChild(textArea) textArea.select() document.execCommand('copy') document.body.removeChild(textArea) setCopied(true) setTimeout(() => setCopied(false), 2000) } } return ( {/* Shortcode */} Shortcode Use this shortcode to display the currency switcher anywhere on your site
{shortcode}

You can also use the Elementor widget for more advanced placement options.

) }