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

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

export const Primary = () => (
  <Surface>
    <Rating value={'4'} />
  </Surface>
)

export const Scale = () => (
  <Surface>
    <Rating value={'2'} />
    <Rating value={'3'} />
    <Rating value={'5'} />
  </Surface>
)

export const Readonly = () => (
  <Surface>
    <Rating value={'4'} readonly />
  </Surface>
)
