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 (
{ window.open( 'https://github.com/toeverything/AFFiNE/releases', '_blank' ); }} > {t("Discover what's new!")}
{ handleClose(); }} data-testid="change-log-close-button" >
); }; export default ChangeLog;