import React from 'react'; import { BaseInputOptionProps } from '@leafygreen-ui/input-option'; import { DarkModeProps } from '@leafygreen-ui/lib'; import { InferredPolymorphicProps, PolymorphicAs, } from '@leafygreen-ui/polymorphic'; export type InternalSearchResultProps = DarkModeProps & Omit & { /** * The value of the result */ children: React.ReactNode; /** * Optional description text */ description?: React.ReactNode; /** * Callback fired when the option is clicked */ onClick?: React.MouseEventHandler; }; // External only export type SearchResultProps = InferredPolymorphicProps;