import { CheckBox } 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>
    <CheckBox darkTheme="on" enable="yes" status="on">Auto-restart on failure</CheckBox>
  </Surface>
)

export const Statuses = () => (
  <Surface>
    <CheckBox darkTheme="on" enable="yes" status="off">Record archive</CheckBox>
    <CheckBox darkTheme="on" enable="yes" status="on">Auto-restart on failure</CheckBox>
    <CheckBox darkTheme="on" enable="yes" status="some">Select all sources</CheckBox>
  </Surface>
)

export const Disabled = () => (
  <Surface>
    <CheckBox darkTheme="on" enable="no" status="on">Hardware encoder (locked)</CheckBox>
    <CheckBox darkTheme="on" enable="no" status="off">SRT passthrough (unavailable)</CheckBox>
  </Surface>
)
