refactor(ui): centralise themed dialogs
This commit is contained in:
@@ -60,3 +60,7 @@ export function useI18n() {
|
||||
if (!ctx) throw new Error("useI18n must be used within I18nProvider");
|
||||
return ctx;
|
||||
}
|
||||
|
||||
export function useOptionalI18n() {
|
||||
return useContext(I18nContext);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user