xonecas.io
466
Me

marked-editor / files

marked-editor / client / src / components / editor / placeholder.ts

542 bytes
1export function randomIntFromInterval(min: number, max: number) {
2  return Math.floor(Math.random() * (max - min + 1) + min);
3}
4
5export default function placeholderLine() {
6  const lines = [
7    "Not bored yet, are you?",
8    "This is called a 'A writer's block'...",
9    "Do you also stare out the window while zoned out?",
10    "I bet you read this and forgot what you meant to note down.",
11    "They say you can use markdown here...",
12    "Have you pressed CTRL+ENTER ?",
13  ];
14
15  return lines[randomIntFromInterval(0, lines.length - 1)];
16}