2022-05-05 11:08:45 -07:00
|
|
|
import React from 'react';
|
|
|
|
|
2022-11-15 11:00:40 -08:00
|
|
|
import IconPickerDropdown from './icon-picker-dropdown';
|
2022-05-05 11:08:45 -07:00
|
|
|
|
|
|
|
interface IIconPicker {
|
2023-02-15 13:26:27 -08:00
|
|
|
value: string
|
|
|
|
onChange: React.ChangeEventHandler
|
2022-05-05 11:08:45 -07:00
|
|
|
}
|
|
|
|
|
2022-05-05 15:29:24 -07:00
|
|
|
const IconPicker: React.FC<IIconPicker> = ({ value, onChange }) => {
|
2022-05-05 11:08:45 -07:00
|
|
|
return (
|
2023-02-01 14:13:42 -08:00
|
|
|
<div className='relative mt-1 rounded-md border border-solid border-gray-300 shadow-sm dark:border-gray-600 dark:bg-gray-800'>
|
2022-05-05 15:29:24 -07:00
|
|
|
<IconPickerDropdown value={value} onPickEmoji={onChange} />
|
2022-05-05 11:08:45 -07:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default IconPicker;
|