|
- import FullScreenFrame from '@/components/FullScreenFrame';
- import { getLabelStudioUrl } from '@/services/developmentEnvironment';
- import { to } from '@/utils/promise';
- import { useEffect, useState } from 'react';
-
- function DatasetAnnotation() {
- const [iframeUrl, setIframeUrl] = useState('');
- useEffect(() => {
- requestIframeUrl();
- }, []);
- const requestIframeUrl = async () => {
- const [res] = await to(getLabelStudioUrl());
- if (res && res.data) {
- setIframeUrl(res.data);
- }
- };
- return <FullScreenFrame url={iframeUrl} />;
- }
-
- export default DatasetAnnotation;
|