# Interface

export interface Notification {
  icon: string;
  title: string;
  subTitle: string;
  message: string;
  duration?: number;
  oggFile?: string;
}

# Use Rebar Plugin API (Serverside)

import { useRebar } from '@Server/index.js';

const Rebar = useRebar();
const NotificationAPI = Rebar.useApi().get('ascended-notification-api');

NotificationAPI.create({
    icon: '🤡';
    title: 'Task Title';
    subTitle: 'Successfully done';
    message: 'Hello World';
    duration: 5000; // Optional
    oggFile: 'bell'; // Optional
});

# Use Rebar Plugin API (Clientside)

import { useRebarClient } from '@Client/index.js';

const API = useRebarClient().useClientApi();
const NotificationAPI = API.get('ascended-notification-api');

NotificationAPI.create({
    icon: '🤡';
    title: 'Task Title';
    subTitle: 'Successfully done';
    message: 'Hello World';
    duration: 5000; // Optional
    oggFile: 'bell'; // Optional
});

# Preview