@drivy/cobalt
Version:
Opinionated design system for Drivy's projects.
13 lines (12 loc) • 462 B
TypeScript
import type React from "react";
import type { PropsWithChildren } from "react";
export type AlertStatus = "info" | "success" | "error";
export declare const useAlerts: () => {
sendAlert: ({ message, status, duration, }: {
message: React.ReactNode;
status: AlertStatus;
duration?: number;
}) => string;
};
declare const Alerter: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
export default Alerter;