xtumu's picture
download
raw
636 Bytes
import { h, Component, ComponentChildren } from 'preact';
import './modal.scss';
interface Props {
show: boolean;
children: ComponentChildren;
}
export class Modal extends Component<Props> {
constructor(props: Props) {
super(props);
}
render({ show, children }: Props) {
return (
show && (
<div className="modal">
<div className="modal-background" />
<div className="modal-content">
<div className="box">{children}</div>
</div>
</div>
)
);
}
}

Xet Storage Details

Size:
636 Bytes
·
Xet hash:
055719256a729a3ec81976bdf0c142fa30db2fe7fded86a607a06a43bdbcbdb5

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.