mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 18:55:23 +03:00
Start with getting list of exports
This commit is contained in:
parent
d0873631cc
commit
06d0e70385
@ -3,9 +3,11 @@ import { useState } from 'preact/hooks';
|
|||||||
import useSWR from 'swr';
|
import useSWR from 'swr';
|
||||||
import Button from '../components/Button';
|
import Button from '../components/Button';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
|
import { useApiHost } from '../api';
|
||||||
|
|
||||||
export default function Export() {
|
export default function Export() {
|
||||||
const { data: config } = useSWR('config');
|
const { data: config } = useSWR('config');
|
||||||
|
const { data: exports } = axios.get(`${useApiHost()}/exports/`).then((res) => res.data)
|
||||||
|
|
||||||
const [camera, setCamera] = useState('select');
|
const [camera, setCamera] = useState('select');
|
||||||
const [playback, setPlayback] = useState('select');
|
const [playback, setPlayback] = useState('select');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user