Customer account ui extension

i have multiple customer account ui extension like : invoice, sales & settings. now i want to hide/show invoice & sales extension based on settings extension settings.
how can i achive this.

also i want to know. proxy is working in customer account extension?
i have setup proxy but doesn’t work it would be great help for me. if anyone help.
my proxy code:
fetch(apps/proxy/invoices, {
method: “GET”,
headers: {
“Content-Type”: “application/json”,
“Authorization”: Bearer ${token}
}
})

Hello, have you taken a look at useSettings?

Also the information regarding your proxy is very vague, have you checked your endpoint you’ve created to see if you’re encountering any errors?

shpoify.app.toml

[app_proxy]
url = "https://********.dev/api"
subpath = "my-app"
prefix = "apps"

customer account extension

const fetchInvoices = async(token) => {

    const response = await fetch(`/apps/my-app/invoices, {
        method: "GET",
        headers: { 
           "Content-Type": "application/json",
           "Authorization": `Bearer ${token}`
        }
    })
    return response.json();
}

getting error like this