import { PropsWithChildren } from 'react'

export interface Props {
  as: 'ol' | 'ul'
}

export default function List({ as: Tag, children }: PropsWithChildren<Props>) {
  return <Tag>{children}</Tag>
}
