import React from 'react'; import { cx } from '@leafygreen-ui/emotion'; import { useDarkMode } from '@leafygreen-ui/leafygreen-provider'; import { Polymorphic, PolymorphicAs, usePolymorphic, } from '@leafygreen-ui/polymorphic'; import { InputOptionContext } from '../InputOptionContext'; import { getInputOptionStyles, getInputOptionWedge, inputOptionClassName, } from './InputOption.style'; import { InternalInputOptionProps } from './InputOption.types'; export const InputOption = Polymorphic( ( { as = 'li' as PolymorphicAs, children, disabled, highlighted, checked, darkMode: darkModeProp, showWedge = true, isInteractive = true, className, ...rest }, ref, ) => { const { Component } = usePolymorphic(as); const { theme, darkMode } = useDarkMode(darkModeProp); return ( {children} ); }, ); InputOption.displayName = 'InputOption';