@magicbell/magicbell-react
Version:
React components for building a notification inbox for your app
12 lines (11 loc) • 541 B
TypeScript
/**
* Hook to get the right border radius for the notification inbox.
*
* E.g.: If the header is the first element, its defined border radius will be
* applied to the container top corners. If it is the last element, its border
* radius will be applied to the bottom corners of the container.
*
* @param layout Layout used to sort components in the notification inbox
* @returns An array containing the rules for the border radius sorted (CSS order).
*/
export default function useContainerBorderRadius(layout: string[]): string[];