Files
ontime/apps/client/src/features/editors/welcome/WelcomePlacement.tsx
T
2024-11-25 09:54:04 +01:00

15 lines
373 B
TypeScript

import { useDialogStore } from '../../../common/stores/dialogStore';
import Welcome from './Welcome';
export default function WelcomePlacement() {
const showDialog = useDialogStore((state) => state.showDialog);
const clearDialog = useDialogStore((state) => state.clearDialog);
if (!showDialog) {
return null;
}
return <Welcome onClose={clearDialog} />;
}