export interface ApiConfig { apiUrl: string headers: Opt> } const tag = Tag() export const Live = (config: Config) => config.config.toLayer(tag) export const ApiConfig = { Tag: tag, Live } export const getConfig = (self: (cfg: ApiConfig) => Effect) => tag.accessWithEffect(self)