import {type ActionIconProps, Button} from '@mantine/core'; import {type HTMLPropsRef, type MRT_TableInstance} from '../types'; import {Icon} from "@iconify/react"; interface Props = {}> extends ActionIconProps, HTMLPropsRef { table: MRT_TableInstance; } export const MRT_ToggleFullScreenButton = < TData extends Record = {}, >({table, ...rest}: Props) => { const { getState, options: { localization, }, setIsFullScreen, } = table; const {isFullScreen} = getState(); const handleToggleFullScreen = () => { setIsFullScreen(!isFullScreen); }; return ( ); };