feat: Ability to record videos and capture photos directly in app by selecting + in Files view (#2095)

This commit is contained in:
Aman Harwara
2022-12-13 21:41:41 +05:30
committed by GitHub
parent cd8596b14e
commit d4b63e4ea6
11 changed files with 552 additions and 39 deletions

View File

@@ -1,5 +1,5 @@
import { classNames } from '@standardnotes/utils'
import { Fragment, FunctionComponent, ReactNode } from 'react'
import { FunctionComponent, ReactNode } from 'react'
type Props = {
className?: string
@@ -9,16 +9,7 @@ type Props = {
const ModalDialogButtons: FunctionComponent<Props> = ({ children, className }) => (
<>
<hr className="m-0 h-[1px] border-none bg-border" />
<div className={classNames('flex items-center justify-end px-4 py-4', className)}>
{children != undefined && Array.isArray(children)
? children.map((child, idx, arr) => (
<Fragment key={idx}>
{child}
{idx < arr.length - 1 ? <div className="min-w-3" /> : undefined}
</Fragment>
))
: children}
</div>
<div className={classNames('flex items-center justify-end gap-3 px-4 py-4', className)}>{children}</div>
</>
)