2022-10-15 14:41:06 +02:00
|
|
|
import React from 'react';
|
|
|
|
import LoadIn from "../../components/animation/LoadIn";
|
2023-02-06 18:01:33 +01:00
|
|
|
import {Col, Row} from "react-bootstrap";
|
2022-10-15 14:41:06 +02:00
|
|
|
import QueryOptionsCard from "../../components/cards/query/QueryOptionsCard";
|
2022-11-12 09:39:20 +01:00
|
|
|
import QueryPath from "../../components/alert/QueryPath";
|
2023-08-20 10:56:13 +02:00
|
|
|
import {useAuth} from "../../hooks/authenticationHook";
|
2022-10-15 14:41:06 +02:00
|
|
|
|
|
|
|
const NewQueryView = () => {
|
2023-08-20 10:56:13 +02:00
|
|
|
const {hasPermission} = useAuth();
|
2022-10-15 14:41:06 +02:00
|
|
|
return (
|
|
|
|
<LoadIn>
|
2023-08-20 10:56:13 +02:00
|
|
|
{hasPermission('access.query') && <section className={"query-options-view"}>
|
2022-10-15 14:41:06 +02:00
|
|
|
<Row>
|
|
|
|
<Col md={12}>
|
2024-03-14 19:16:56 +01:00
|
|
|
<QueryPath newQuery/>
|
2022-10-15 14:41:06 +02:00
|
|
|
<QueryOptionsCard/>
|
|
|
|
</Col>
|
|
|
|
</Row>
|
2023-08-20 10:56:13 +02:00
|
|
|
</section>}
|
2022-10-15 14:41:06 +02:00
|
|
|
</LoadIn>
|
|
|
|
)
|
|
|
|
};
|
|
|
|
|
|
|
|
export default NewQueryView
|