import { useIntl } from "react-intl"; import { Button } from "antd"; import { Link } from "react-router"; import { useAppSelector } from "../../hooks"; import { currentUser as _currentUser } from "../../reducers/current-user"; interface IWidget { style?: React.CSSProperties; } const ToStudioWidget = ({ style }: IWidget) => { const intl = useIntl(); const user = useAppSelector(_currentUser); if (typeof user !== "undefined") { return ( ); } else { return <>; } }; export default ToStudioWidget;