mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-25 04:46:04 +08:00
13 lines
328 B
JavaScript
13 lines
328 B
JavaScript
/**
|
|
* Checks if the given cell type is eligible for evaluation.
|
|
*/
|
|
export function isEvaluable(cellType) {
|
|
return ["code", "smart"].includes(cellType);
|
|
}
|
|
|
|
/**
|
|
* Checks if the given cell type has primary editable editor.
|
|
*/
|
|
export function isDirectlyEditable(cellType) {
|
|
return ["markdown", "code"].includes(cellType);
|
|
}
|