mirror of
https://github.com/supabase/supabase.git
synced 2026-10-07 18:35:07 +03:00
13 lines
347 B
TypeScript
13 lines
347 B
TypeScript
import { Context, Effect, Layer } from 'effect'
|
|
|
|
export class CurrentLocation extends Context.Service<
|
|
CurrentLocation,
|
|
{
|
|
readonly path: Effect.Effect<string>
|
|
}
|
|
>()('studio/domain/monitoring/CurrentLocation') {}
|
|
|
|
export const CurrentLocationLive = Layer.succeed(CurrentLocation, {
|
|
path: Effect.sync(() => window.location.pathname),
|
|
})
|