personal-website/components/server/List.tsx

10 lines
202 B
TypeScript
Raw Normal View History

import { PropsWithChildren } from 'react'
export interface Props {
as: 'ol' | 'ul'
}
export default function List({ as: Tag, children }: PropsWithChildren<Props>) {
return <Tag>{children}</Tag>
}