type route =
| DistBuilder
| NotFound
let routeToPath = route =>
switch route {
| DistBuilder => "/"
| _ => "/"
}
let fixedLength = r =>
r
@react.component
let make = () => {
let url = RescriptReactRouter.useUrl()
let routing = switch url.path {
| list{} => DistBuilder
| _ => NotFound
}
<>
{switch routing {
| DistBuilder =>
| _ => fixedLength("Page is not found" |> R.ste)
}}
>
}