diff --git a/demo/src/components/MessageComponent/MessageComponent.tsx b/demo/src/components/MessageComponent/MessageComponent.tsx index 200b2cae..79b8bf5b 100644 --- a/demo/src/components/MessageComponent/MessageComponent.tsx +++ b/demo/src/components/MessageComponent/MessageComponent.tsx @@ -1,18 +1,8 @@ import { Message } from '@ably/chat'; -import React, { useCallback, useState } from 'react'; +import React, { useCallback } from 'react'; import clsx from 'clsx'; import { FaPencil, FaTrash } from 'react-icons/fa6'; -function twoDigits(input: number): string { - if (input === 0) { - return '00'; - } - if (input < 10) { - return '0' + input; - } - return '' + input; -} - interface MessageProps { self?: boolean; message: Message;