diff --git a/packages/chat/src/bubble/altered.tsx b/packages/chat/src/bubble/altered.tsx index 4f8faaddab..734047afcb 100644 --- a/packages/chat/src/bubble/altered.tsx +++ b/packages/chat/src/bubble/altered.tsx @@ -1,10 +1,19 @@ import { FlexBox } from '@titicaca/core-elements' +import styled, { css } from 'styled-components' import ExclamationMarkIcon from '../icons/ExclamationMarkIcon' import Bubble from './bubble' import { BlindedBubbleProp } from './type' +const AlteredText = styled.span<{ color?: string }>` + ${({ color }) => + color && + css` + color: ${color}; + `} +` + export default function AlteredBubble({ my, parentMessage, @@ -14,13 +23,14 @@ export default function AlteredBubble({ }: BlindedBubbleProp) { const alteredCSS = { margin: my ? '0 0 0 8px' : undefined, - ...(textColor && { color: textColor }), } return ( - {alternativeText ?? '관리자에 의해 삭제되었습니다'} + + {alternativeText ?? '관리자에 의해 삭제되었습니다'} + )