import React, { ReactNode } from 'react'; interface PageToolbarProps { title: ReactNode; actions?: ReactNode; } export function PageToolbar({ title, actions }: PageToolbarProps) { return (
{typeof title === 'string' ? (

{title}

) : ( title )}
{actions && (
{actions}
)}
); }