mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 03:05:24 +08:00
19 lines
462 B
JavaScript
19 lines
462 B
JavaScript
import once from 'lodash/once';
|
|
|
|
// @Deprecated
|
|
const showOldTagsWarningOnce = once(() => {
|
|
if (process.env.NODE_ENV !== 'production') {
|
|
console.warn(
|
|
'`commentBoxTagsSelector` is deprecated. Please switch to `input.tags` instead'
|
|
);
|
|
}
|
|
});
|
|
|
|
export const commentBoxTagsSelector = state => {
|
|
showOldTagsWarningOnce();
|
|
return state.stream.commentBoxTags;
|
|
};
|
|
|
|
export const commentClassNamesSelector = state =>
|
|
state.stream.commentClassNames;
|