mirror of
https://github.com/hanzoai/calendar.git
synced 2026-09-24 22:42:24 +00:00
Co-authored-by: Morgan <[email protected]> Co-authored-by: Morgan Vernay <[email protected]> Co-authored-by: Peer Richelsen <[email protected]>
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 {};
|
|
};
|