"use client"; import { Text } from "@mantine/core"; import type { SelectWithCustomItemsProps } from "./select-with-custom-items"; import { SelectWithCustomItems } from "./select-with-custom-items"; export interface SelectItemWithDescription { value: string; label: string; description: string; } type Props = SelectWithCustomItemsProps; export const SelectWithDescription = (props: Props) => { return {...props} SelectOption={SelectOption} />; }; const SelectOption = ({ label, description }: SelectItemWithDescription) => { return (
{label} {description}
); };