import { useState } from 'react';

import { CodeBlockFeatureProps } from '@/interfaces/CodeBlock';

import { ListDetailLargeComponent } from '.';
import ListDetailComponent from './components/ListDetailComponent';

function ListDetail() {
  const [notification, setNotification] = useState(undefined);
  const features: { [x: string]: CodeBlockFeatureProps } = {
    withstar: {
      interactions: {
        hover: true,
        click: {
          description: 'List item and start button are cliable.',
        },
      },
      ui: {
        RTL: true,
        darkMode: true,
      },
      accessibility: {
        contrast: {
          description:
            'A divide border will be added to seperate each items. When hover, item background will change to bright yellow.',
        },
      },
    },
  };
  return (
    <>
      <div className='grid w-full place-items-center pt-20 pb-16'>
        <ListDetailComponent setNotification={setNotification} />
      </div>
      <div className='grid w-full place-items-center pt-20 pb-16'>
        <ListDetailLargeComponent />
      </div>
    </>
  );
}

export default ListDetail;
