bookbrainz/bookbrainz-site

View on GitHub
src/client/entity-editor/common/linked-entity-select.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import LinkedEntity from './linked-entity';
import {OptionProps} from 'react-select/src/components/Option';
import React from 'react';


const LinkedEntitySelect = (props:OptionProps<any, any>) => {
    const styles = props.getStyles('option', props);
    return <LinkedEntity {...(props.innerProps)} className="react-select__option" data={props.data} style={styles}/>;
};

export default LinkedEntitySelect;