import React, { FunctionComponent, HTMLAttributes, useMemo, useState } from 'react'; import { classNames } from '../../lib/classNames'; import { getClassName } from '../../helpers/getClassName'; import { usePlatform } from '../../hooks/usePlatform'; import { ListContext } from './ListContext'; const List: FunctionComponent> = ({ className, children, ...restProps }: HTMLAttributes) => { const platform = usePlatform(); const [isDragging, toggleDrag] = useState(false); const baseClassName = getClassName('List', platform); return ( ({ toggleDrag }), [])}> {children} ); }; export default List;