9 lines
194 B
TypeScript
9 lines
194 B
TypeScript
import React from "react";
|
|
|
|
export function placeholder(value?: string) {
|
|
if (value === undefined) {
|
|
return <span className="placeholder"/>
|
|
} else {
|
|
return value;
|
|
}
|
|
} |