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 {
|
|
|
|
value: string,
|
|
|
|
onChange: React.ChangeEventHandler,
|
|
|
|
}
|
|
|
|
|
2022-05-05 15:29:24 -07:00
|
|
|
const IconPicker: React.FC<IIconPicker> = ({ value, onChange }) => {
|
2022-05-05 11:08:45 -07:00
|
|
|
return (
|
2022-07-22 10:30:16 -07:00
|
|
|
<div className='mt-1 relative rounded-md shadow-sm dark:bg-gray-800 border border-solid border-gray-300 dark:border-gray-600'>
|
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;
|