import { Link, Route, Switch, useRouteMatch } from "react-router-dom"; import MovieEdit from "./MovieEdit"; import TheaterEdit from "./TheaterEdit"; import CinemaEdit from "./CinemaEdit"; import styles from "./admin.module.scss"; const Admin = () => { const match = useRouteMatch() return (