@magicbell/magicbell-react
Version:
React components for building a notification inbox for your app
16 lines (15 loc) • 369 B
TypeScript
import React from 'react';
interface LayoutProps {
order: string[];
children: React.ReactNode[];
}
/**
* Component to sort the children based on the `order` property.
*
* @example
* <Layout order={['footer']}>
* <p key="footer">Settings</p>
* </Layout>
*/
export default function Layout({ order, children }: LayoutProps): React.JSX.Element;
export {};