import { Legend } from '@based/ui'

export const meta: Based.UI.Extractor.MetaDescriptor = {
  name: 'Legend',
  group: 'Primitives',
  section: 'components',
  icon: 'edit',
  component: Legend,
  subtitle:
    'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
  showApi: true,
  showUsage: true,
}

export const blocks: Based.UI.Extractor.BlocksDescriptor[] = [
  {
    name: 'Default',
    type: 'component',
    description: 'Et harum quidem rerum facilis est et expedita distinctio.',
    style: {
      size: 'small',
      frame: false,
      flex: {
        justifyContent: 'center',
        alignItems: 'center',
      },
    },
    render: () => {
      return <Legend label="Shares" color="blue80" />
    },
  },
]
