"use client"; import * as React from "react"; // Dialog and Sheet draw their own close button, so its accessible name cannot // come from the caller. `Providers` supplies it from the dictionary, once for // the whole app; the English default only serves a render outside it. const CloseLabelContext = React.createContext("Close"); function CloseLabelProvider({ label, children, }: { label: string; children: React.ReactNode; }) { return ( {children} ); } function useCloseLabel(): string { return React.useContext(CloseLabelContext); } export { CloseLabelProvider, useCloseLabel };