Co-authored-by: Morgan <33722304+ThyMinimalDev@users.noreply.github.com> Co-authored-by: Morgan Vernay <morgan@cal.com> Co-authored-by: Peer Richelsen <peeroke@gmail.com>
17 lines
402 B
TypeScript
17 lines
402 B
TypeScript
// Extra styles to show prefixed text in react-select
|
|
export const getPlaceholderContent = (hidePlaceholder = false, contentText = "Create events on") => {
|
|
if (!hidePlaceholder) {
|
|
return {
|
|
alignItems: "center",
|
|
width: "100%",
|
|
display: "flex",
|
|
":before": {
|
|
content: contentText,
|
|
display: "block",
|
|
marginRight: 8,
|
|
},
|
|
};
|
|
}
|
|
return {};
|
|
};
|