// Copyright 2019-2026 @pezkuwi/extension-ui authors & contributors
// SPDX-License-Identifier: Apache-2.0

import { useContext } from 'react';

import { ToastContext } from '../components/contexts.js';

export default function useToast (): {show: (message: string) => void} {
  return useContext(ToastContext);
}
