import { useTranslation } from '@affine/i18n'; import { CloseIcon, NewIcon } from '@blocksuite/icons'; import clsx from 'clsx'; import { useState } from 'react'; import { IconButton } from '../..'; import { changeLogSlideInStyle, changeLogSlideOutStyle, changeLogWrapperSlideInStyle, changeLogWrapperSlideOutStyle, iconButtonStyle, iconStyle, linkStyle, } from './index.css'; type ChangeLogProps = { onCloseWhatsNew: () => void; }; export const ChangeLog = (props: ChangeLogProps) => { const { onCloseWhatsNew } = props; const [isClose, setIsClose] = useState(false); const { t } = useTranslation(); const handleClose = () => { setIsClose(true); onCloseWhatsNew(); }; return (