import clsx from 'clsx'; import { ComponentProps, ComponentType, ElementType } from 'react'; export type AsComponentProps = ComponentProps & { as?: E; }; export function BlocklistItem({ className, isSelected, children, as = 'button', ...props }: AsComponentProps & { isSelected?: boolean; as?: ComponentType; }) { const Component = as as 'button'; return ( {children} ); }