'use client'
import { GlobalStyles } from '../types'
import { Input } from '../../ui/input'
import { Label } from '../../ui/label'
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
} from '../../ui/select'
import { THEME_PRESETS } from '../utils/defaults'
import { cn } from '../../../lib/utils'
interface GlobalStylesPanelProps {
globalStyles: GlobalStyles
onChange: (styles: GlobalStyles) => void
}
export function GlobalStylesPanel({ globalStyles, onChange }: GlobalStylesPanelProps) {
return (
Email Design
onChange({ ...globalStyles, contentWidth: parseInt(e.target.value) || 600 })
}
className="h-8 text-xs"
min={400}
max={800}
/>
Themes
{THEME_PRESETS.map((preset) => (
))}
)
}