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

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

export const Primary = () => (
  <Surface>
    <Radio darkTheme="on" enable="yes" status="on">1080p</Radio>
  </Surface>
)

export const ResolutionGroup = () => (
  <Surface>
    <Radio darkTheme="on" enable="yes" status="on">1080p</Radio>
    <Radio darkTheme="on" enable="yes" status="off">720p</Radio>
    <Radio darkTheme="on" enable="yes" status="off">480p</Radio>
  </Surface>
)

export const Disabled = () => (
  <Surface>
    <Radio darkTheme="on" enable="no" status="on">4K (Pro plan)</Radio>
    <Radio darkTheme="on" enable="no" status="off">8K (unavailable)</Radio>
  </Surface>
)
