import { type CalloutBlockObjectResponse } from '@notionhq/client/build/src/api-endpoints' import Image from 'next/image' import { type PropsWithChildren } from 'react' export interface Props { icon: CalloutBlockObjectResponse['callout']['icon'] } export function CalloutIcon({ icon }: PropsWithChildren) { return ( icon && (icon.type === 'emoji' ? ( {icon.emoji} ) : ( )) ) } export default function Callout({ children }: PropsWithChildren) { return (
{children}
) }