import { Input } from 'tvu-react-pilot'

const Surface = ({ children }: any) => (
  <div style={{ background: 'var(--bg-layer1)', padding: 20, display: 'flex', gap: 12, flexWrap: 'wrap', alignItems: 'center', borderRadius: 8 }}>
    {children}
  </div>
)

export const Placeholder = () => (
  <Surface>
    <Input darkTheme="on" size="M" status="Placeholder" enable="on" ux="default" feature="no" placeholder="Enter channel name…" />
  </Surface>
)

export const Filled = () => (
  <Surface>
    <Input darkTheme="on" size="M" status="Value" enable="on" ux="default" feature="no" value="Studio A — Main Feed" />
  </Surface>
)

export const Sizes = () => (
  <Surface>
    <Input darkTheme="on" size="M" status="Value" enable="on" ux="default" feature="no" value="srt://ingest.tvu.com:9000" />
    <Input darkTheme="on" size="L" status="Value" enable="on" ux="default" feature="no" value="srt://ingest.tvu.com:9000" />
    <Input darkTheme="on" size="XL" status="Value" enable="on" ux="default" feature="no" value="srt://ingest.tvu.com:9000" />
  </Surface>
)

export const Error = () => (
  <Surface>
    <Input darkTheme="on" size="M" status="Value" enable="on" ux="error" feature="no" value="rtmp://bad-host" />
  </Surface>
)

export const Disabled = () => (
  <Surface>
    <Input darkTheme="on" size="M" status="Value" enable="off" ux="default" feature="no" value="Locked stream key" />
  </Surface>
)
