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