Files
explore/lib/getPlaceholderWithError.ts
T
2022-08-29 19:25:14 +03:00

4 lines
147 B
TypeScript

export default function getPlaceholderWithError(text: string, errorText?: string) {
return `${ text }${ errorText ? ' - ' + errorText : '' }`;
}